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

Unified Diff: sync/test/accounts_client/url_request_context_getter.cc

Issue 22795006: Remove WorkerPool dependency from URLRequestFileJob. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android include Created 7 years, 4 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
Index: sync/test/accounts_client/url_request_context_getter.cc
diff --git a/sync/test/accounts_client/url_request_context_getter.cc b/sync/test/accounts_client/url_request_context_getter.cc
index 161b57d0655860f2c2fb54f1ae1b08dd8fb09e01..ba34e0dc82fc867537b6c2b98eba6c7852f4f29e 100644
--- a/sync/test/accounts_client/url_request_context_getter.cc
+++ b/sync/test/accounts_client/url_request_context_getter.cc
@@ -6,6 +6,7 @@
#include <string>
+#include "base/threading/worker_pool.h"
#include "net/proxy/proxy_config_service.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_builder.h"
@@ -35,7 +36,8 @@ URLRequestContextGetter::URLRequestContextGetter(
net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
CHECK(network_task_runner_->BelongsToCurrentThread());
if (!url_request_context_) {
- net::URLRequestContextBuilder builder;
+ net::URLRequestContextBuilder builder(
+ base::WorkerPool::GetTaskRunner(true /* task_is_slow */));
// net::HttpServer fails to parse headers if user-agent header is blank.
builder.set_user_agent("sync-test-accounts-client");
builder.DisableHttpCache();
« net/url_request/url_request_context_builder.cc ('K') | « net/url_request/url_request_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698