diff options
author | skyostil <skyostil@chromium.org> | 2016-02-25 02:52:36 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-25 10:53:38 +0000 |
commit | abeb69ff4072a386ac2db06a7be218af4bf53711 (patch) | |
tree | d006d8b506bb8be5207497296376b4a0ca004f11 /extensions/shell | |
parent | f7ca0a10407d381abc86b94ce5744592c0afe63c (diff) | |
download | chromium_src-abeb69ff4072a386ac2db06a7be218af4bf53711.zip chromium_src-abeb69ff4072a386ac2db06a7be218af4bf53711.tar.gz chromium_src-abeb69ff4072a386ac2db06a7be218af4bf53711.tar.bz2 |
Remove some usages of BrowserThread::UnsafeGetMessageLoopForThread
No functional changes.
BUG=546953
Review URL: https://codereview.chromium.org/1730533002
Cr-Commit-Position: refs/heads/master@{#377549}
Diffstat (limited to 'extensions/shell')
3 files changed, 8 insertions, 8 deletions
diff --git a/extensions/shell/browser/shell_browser_context.cc b/extensions/shell/browser/shell_browser_context.cc index b38661b..fb1d513 100644 --- a/extensions/shell/browser/shell_browser_context.cc +++ b/extensions/shell/browser/shell_browser_context.cc @@ -51,9 +51,9 @@ net::URLRequestContextGetter* ShellBrowserContext::CreateRequestContext( DCHECK(!url_request_context_getter()); set_url_request_context_getter(new ShellURLRequestContextGetter( this, IgnoreCertificateErrors(), GetPath(), - content::BrowserThread::UnsafeGetMessageLoopForThread( + content::BrowserThread::GetMessageLoopProxyForThread( content::BrowserThread::IO), - content::BrowserThread::UnsafeGetMessageLoopForThread( + content::BrowserThread::GetMessageLoopProxyForThread( content::BrowserThread::FILE), protocol_handlers, std::move(request_interceptors), nullptr /* net_log */, extension_info_map)); diff --git a/extensions/shell/browser/shell_url_request_context_getter.cc b/extensions/shell/browser/shell_url_request_context_getter.cc index 8ee74b2..abd5aed 100644 --- a/extensions/shell/browser/shell_url_request_context_getter.cc +++ b/extensions/shell/browser/shell_url_request_context_getter.cc @@ -17,16 +17,16 @@ ShellURLRequestContextGetter::ShellURLRequestContextGetter( content::BrowserContext* browser_context, 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, content::ProtocolHandlerMap* protocol_handlers, content::URLRequestInterceptorScopedVector request_interceptors, net::NetLog* net_log, InfoMap* extension_info_map) : content::ShellURLRequestContextGetter(ignore_certificate_errors, base_path, - io_loop, - file_loop, + io_task_runner, + file_task_runner, protocol_handlers, std::move(request_interceptors), net_log), diff --git a/extensions/shell/browser/shell_url_request_context_getter.h b/extensions/shell/browser/shell_url_request_context_getter.h index 1b6156a..ca678ea 100644 --- a/extensions/shell/browser/shell_url_request_context_getter.h +++ b/extensions/shell/browser/shell_url_request_context_getter.h @@ -33,8 +33,8 @@ class ShellURLRequestContextGetter : content::BrowserContext* browser_context, 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, content::ProtocolHandlerMap* protocol_handlers, content::URLRequestInterceptorScopedVector request_interceptors, net::NetLog* net_log, |