Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Unified Diff: content/browser/android/url_request_content_job_unittest.cc

Issue 2130493002: Implement THROTTLED priority semantics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NetworkStreamThrottler
Patch Set: Remove comparison between iterators from different sequences. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/android/url_request_content_job_unittest.cc
diff --git a/content/browser/android/url_request_content_job_unittest.cc b/content/browser/android/url_request_content_job_unittest.cc
index c87f7e151267c03ef832e7c03bbdfab8d83e3520..f3c764bedfce7cd4c5ab5f1b433eb1c1c2172564 100644
--- a/content/browser/android/url_request_content_job_unittest.cc
+++ b/content/browser/android/url_request_content_job_unittest.cc
@@ -47,7 +47,7 @@ class CallbacksJobFactory : public net::URLRequestJobFactory {
request,
network_delegate,
path_,
- const_cast<base::MessageLoop*>(&message_loop_)->task_runner());
+ base::MessageLoop::current()->task_runner());
Ryan Sleevi 2016/11/07 16:21:38 Shouldn't this be https://cs.chromium.org/chromium
Randy Smith (Not in Mondays) 2016/11/07 16:58:09 Given the amount of pain switching over to TTRH co
Ryan Sleevi 2016/11/07 17:09:43 Well, this is directly being touched by you becaus
observer_->OnJobCreated();
return job;
}
@@ -78,7 +78,6 @@ class CallbacksJobFactory : public net::URLRequestJobFactory {
}
private:
- base::MessageLoop message_loop_;
base::FilePath path_;
JobObserver* observer_;
};
@@ -121,6 +120,7 @@ class URLRequestContentJobTest : public testing::Test {
// retrieved.
void RunRequest(const Range* range);
+ base::MessageLoop message_loop_;
JobObserverImpl observer_;
net::TestURLRequestContext context_;
net::TestDelegate delegate_;

Powered by Google App Engine
This is Rietveld 408576698