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

Unified Diff: net/url_request/url_fetcher_impl_unittest.cc

Issue 2894863002: Rename TaskRunner::RunsTasksOnCurrentThread() in //net (Closed)
Patch Set: fixed build error Created 3 years, 7 months 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
« no previous file with comments | « net/url_request/url_fetcher_core.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_fetcher_impl_unittest.cc
diff --git a/net/url_request/url_fetcher_impl_unittest.cc b/net/url_request/url_fetcher_impl_unittest.cc
index 2cb0c5eb792e3caa0832db0e02cf6afd2aa129b1..782edafc9b90bb6b377d82aa2ddfcaa067ff68fc 100644
--- a/net/url_request/url_fetcher_impl_unittest.cc
+++ b/net/url_request/url_fetcher_impl_unittest.cc
@@ -252,7 +252,7 @@ class FetcherTestURLRequestContextGetter : public URLRequestContextGetter {
double jitter_factor,
int maximum_backoff_ms,
bool reserve_sending_time_for_next_request) {
- if (!network_task_runner_->RunsTasksOnCurrentThread()) {
+ if (!network_task_runner_->RunsTasksInCurrentSequence()) {
network_task_runner_->PostTask(
FROM_HERE,
base::Bind(&FetcherTestURLRequestContextGetter::AddThrottlerEntry,
@@ -277,7 +277,7 @@ class FetcherTestURLRequestContextGetter : public URLRequestContextGetter {
// Tells the getter to act as if the URLRequestContext is about to be shut
// down.
void Shutdown() {
- if (!network_task_runner_->RunsTasksOnCurrentThread()) {
+ if (!network_task_runner_->RunsTasksInCurrentSequence()) {
network_task_runner_->PostTask(
FROM_HERE,
base::Bind(&FetcherTestURLRequestContextGetter::Shutdown, this));
« no previous file with comments | « net/url_request/url_fetcher_core.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698