From abeb69ff4072a386ac2db06a7be218af4bf53711 Mon Sep 17 00:00:00 2001 From: skyostil Date: Thu, 25 Feb 2016 02:52:36 -0800 Subject: 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} --- extensions/shell/browser/shell_browser_context.cc | 4 ++-- extensions/shell/browser/shell_url_request_context_getter.cc | 8 ++++---- extensions/shell/browser/shell_url_request_context_getter.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'extensions/shell') 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 io_task_runner, + scoped_refptr 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 io_task_runner, + scoped_refptr file_task_runner, content::ProtocolHandlerMap* protocol_handlers, content::URLRequestInterceptorScopedVector request_interceptors, net::NetLog* net_log, -- cgit v1.1