diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-07 12:03:42 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-07 12:03:42 +0000 |
commit | ed10dd138cfcb174ac890133e7fe40da91e5b04f (patch) | |
tree | 56316df961cf55cf73884d7b886eca581a7ca46f /content/shell/shell_browser_context.cc | |
parent | 2a349e9b87611c6971a410a056376e87808fbfca (diff) | |
download | chromium_src-ed10dd138cfcb174ac890133e7fe40da91e5b04f.zip chromium_src-ed10dd138cfcb174ac890133e7fe40da91e5b04f.tar.gz chromium_src-ed10dd138cfcb174ac890133e7fe40da91e5b04f.tar.bz2 |
Remove BrowserThread::UnsafeGetBrowserThread, add UnsafeGetMessageLoopForThread.
This also removes several accessors on BrowserProcess that are no longer used.
I wanted to remove all retrieval of MessageLoop objects via BrowserThread, but this proved harder than it looked, because several net:: classes use MessageLoop and have fairly deep assumptions that it is a real MessageLoop, e.g. they use MessageLoopForIO with its IO observers and so forth. Therefore, we now have UnsafeGetMessageLoopForThread but UnsafeGetBrowserThread is gone.
TBR=abodenha@chromium.org
BUG=98716
Review URL: http://codereview.chromium.org/8769013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113377 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/shell_browser_context.cc')
-rw-r--r-- | content/shell/shell_browser_context.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/content/shell/shell_browser_context.cc b/content/shell/shell_browser_context.cc index b72beaf..f5c6996 100644 --- a/content/shell/shell_browser_context.cc +++ b/content/shell/shell_browser_context.cc @@ -142,10 +142,8 @@ net::URLRequestContextGetter* ShellBrowserContext::GetRequestContext() { if (!url_request_getter_) { url_request_getter_ = new ShellURLRequestContextGetter( GetPath(), - BrowserThread::UnsafeGetBrowserThread( - BrowserThread::IO)->message_loop(), - BrowserThread::UnsafeGetBrowserThread( - BrowserThread::FILE)->message_loop()); + BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO), + BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::FILE)); } return url_request_getter_; } |