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

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: rebase again Created 7 years, 7 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 f63c5a0c998ffdd0cede85d41327ec9088f64807..0d1214d71dd764546e44d70717e5eaa0b31267cf 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -292,9 +292,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) {
@@ -334,14 +334,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_;
}
@@ -383,15 +383,17 @@ void BrowserProcessImpl::EndSession() {
#elif defined(OS_WIN)
BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
- base::Bind(PostQuit, MessageLoop::current()));
+ 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());
+ while (--quits_received > 0) {
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::QuitClosure());
+ }
#else
NOTIMPLEMENTED();
#endif
« no previous file with comments | « chrome/browser/browser_keyevents_browsertest.cc ('k') | chrome/browser/browsing_data/browsing_data_cookie_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698