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

Unified Diff: content/shell/browser/shell_url_request_context_getter.h

Issue 1730533002: Remove some usages of BrowserThread::UnsafeGetMessageLoopForThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reformatted. Created 4 years, 10 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: content/shell/browser/shell_url_request_context_getter.h
diff --git a/content/shell/browser/shell_url_request_context_getter.h b/content/shell/browser/shell_url_request_context_getter.h
index db71883f3f072d175a9ec55970a9a983393fefcc..a7fa233b652d7fbd7f878b578278395fe2e177f8 100644
--- a/content/shell/browser/shell_url_request_context_getter.h
+++ b/content/shell/browser/shell_url_request_context_getter.h
@@ -36,8 +36,8 @@ class ShellURLRequestContextGetter : public net::URLRequestContextGetter {
ShellURLRequestContextGetter(
bool ignore_certificate_errors,
const base::FilePath& base_path,
- base::MessageLoop* io_loop,
- base::MessageLoop* file_loop,
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> file_task_runner,
ProtocolHandlerMap* protocol_handlers,
URLRequestInterceptorScopedVector request_interceptors,
net::NetLog* net_log);
@@ -61,8 +61,8 @@ class ShellURLRequestContextGetter : public net::URLRequestContextGetter {
private:
bool ignore_certificate_errors_;
base::FilePath base_path_;
- base::MessageLoop* io_loop_;
- base::MessageLoop* file_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
+ scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
net::NetLog* net_log_;
scoped_ptr<net::ProxyConfigService> proxy_config_service_;

Powered by Google App Engine
This is Rietveld 408576698