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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 88212344e987af065d201c8aff314cfe25fb1900..f4a136e3d6ec90363d82b9993f6315a06bf78145 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -301,9 +301,9 @@ void BrowserProcessImpl::PostDestroyThreads() {
// our (other) recent requests (to save preferences).
// Change the boolean so that the receiving thread will know that we did indeed
// send the QuitTask that terminated the message loop.
-static void PostQuit(MessageLoop* message_loop) {
+static void PostQuit(base::MessageLoop* message_loop) {
g_end_session_file_thread_has_completed = true;
- message_loop->PostTask(FROM_HERE, MessageLoop::QuitClosure());
+ message_loop->PostTask(FROM_HERE, base::MessageLoop::QuitClosure());
}
#elif defined(USE_X11)
static void Signal(base::WaitableEvent* event) {
@@ -343,14 +343,14 @@ unsigned int BrowserProcessImpl::ReleaseModule() {
print_job_manager_.reset();
#endif
- CHECK(MessageLoop::current()->is_running());
+ CHECK(base::MessageLoop::current()->is_running());
#if defined(OS_MACOSX)
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(ChromeBrowserMainPartsMac::DidEndMainMessageLoop));
#endif
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
return module_ref_count_;
}
@@ -391,16 +391,18 @@ void BrowserProcessImpl::EndSession() {
}
#elif defined(OS_WIN)
- BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
- base::Bind(PostQuit, MessageLoop::current()));
+ BrowserThread::PostTask(BrowserThread::FILE,
+ FROM_HERE,
+ base::Bind(PostQuit, base::MessageLoop::current()));
int quits_received = 0;
do {
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
++quits_received;
} while (!g_end_session_file_thread_has_completed);
// If we did get extra quits, then we should re-post them to the message loop.
while (--quits_received > 0)
- MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::QuitClosure());
#else
NOTIMPLEMENTED();
#endif

Powered by Google App Engine
This is Rietveld 408576698