Skip to content

Commit

Permalink
Remove superfluous calls to rlz_lib::SetURLRequestContext
Browse files Browse the repository at this point in the history
rlz_lib::SetURLRequestContext does not need to be called explicitly
since URLRequestRAII's ctor call it, and an instance of it is already
being constructed.

This is a driven-by preparation for crbug.com/844989.

[email protected]

BUG=844989

Change-Id: Ib7e2e0809c4e1e65c386e02008fdce877b829b08
Reviewed-on: https://chromium-review.googlesource.com/1149620
Reviewed-by: Antonio Gomes <[email protected]>
Commit-Queue: Antonio Gomes <[email protected]>
Cr-Commit-Position: refs/heads/master@{#577853}
  • Loading branch information
tonikitoo authored and Commit Bot committed Jul 25, 2018
1 parent b53bca1 commit a9ccc74
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions rlz/lib/rlz_lib_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,6 @@ TEST_F(RlzLibTest, SendFinancialPing) {

scoped_refptr<net::TestURLRequestContextGetter> context =
new net::TestURLRequestContextGetter(io_thread.task_runner());
rlz_lib::SetURLRequestContext(context.get());

URLRequestRAII set_context(context.get());
#endif

Expand Down Expand Up @@ -571,8 +569,6 @@ TEST_F(RlzLibTest, SendFinancialPingDuringShutdown) {

scoped_refptr<net::TestURLRequestContextGetter> context =
new net::TestURLRequestContextGetter(io_thread.task_runner());
rlz_lib::SetURLRequestContext(context.get());

URLRequestRAII set_context(context.get());

rlz_lib::AccessPoint points[] =
Expand Down

0 comments on commit a9ccc74

Please sign in to comment.