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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 8775014: Remove IOThread::message_loop(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head. Created 9 years 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
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/io_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 60bb8a41e9bbe3fe8118913ea95cc1c696f1bb0c..57b2a6faa62c9238a7c42238c71cf82745c4546e 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -331,7 +331,8 @@ unsigned int BrowserProcessImpl::ReleaseModule() {
// of it on shutdown for valid reasons.
base::ThreadRestrictions::SetIOAllowed(true);
CHECK(!BrowserList::GetLastActive());
- io_thread()->message_loop()->PostTask(
+ BrowserThread::PostTask(
+ BrowserThread::IO,
FROM_HERE,
base::IgnoreReturn<bool>(
base::Bind(&base::ThreadRestrictions::SetIOAllowed, true)));
@@ -423,16 +424,6 @@ base::Thread* BrowserProcessImpl::db_thread() {
return BrowserThread::UnsafeGetBrowserThread(BrowserThread::DB);
}
-base::Thread* BrowserProcessImpl::process_launcher_thread() {
- DCHECK(CalledOnValidThread());
- return BrowserThread::UnsafeGetBrowserThread(BrowserThread::PROCESS_LAUNCHER);
-}
-
-base::Thread* BrowserProcessImpl::cache_thread() {
- DCHECK(CalledOnValidThread());
- return BrowserThread::UnsafeGetBrowserThread(BrowserThread::CACHE);
-}
-
WatchDogThread* BrowserProcessImpl::watchdog_thread() {
DCHECK(CalledOnValidThread());
if (!created_watchdog_thread_)
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/io_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698