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

Unified Diff: chrome/browser/service/service_process_control_browsertest.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
« no previous file with comments | « chrome/browser/service/service_process_control.cc ('k') | chrome/browser/sessions/base_session_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/service/service_process_control_browsertest.cc
diff --git a/chrome/browser/service/service_process_control_browsertest.cc b/chrome/browser/service/service_process_control_browsertest.cc
index 4c5bb8d60e180ebac64b4509cdb2c5637a26722b..5922b46103748364a1b6dc187fff941db7b3213e 100644
--- a/chrome/browser/service/service_process_control_browsertest.cc
+++ b/chrome/browser/service/service_process_control_browsertest.cc
@@ -55,7 +55,7 @@ class ServiceProcessControlBrowserTest
void CloudPrintInfoCallback(
const cloud_print::CloudPrintProxyInfo& proxy_info) {
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
void Disconnect() {
@@ -82,13 +82,15 @@ class ServiceProcessControlBrowserTest
// Quit the current message. Post a QuitTask instead of just calling Quit()
// because this can get invoked in the context of a Launch() call and we
// may not be in Run() yet.
- MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::QuitClosure());
}
void ProcessControlLaunchFailed() {
ADD_FAILURE();
// Quit the current message.
- MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::QuitClosure());
}
private:
@@ -132,7 +134,8 @@ IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, LaunchTwice) {
static void DecrementUntilZero(int* count) {
(*count)--;
if (!(*count))
- MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::QuitClosure());
}
// Invoke multiple Launch calls in succession and ensure that all the tasks
@@ -144,7 +147,7 @@ IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest,
for (int i = 0; i < launch_count; i++) {
// Launch the process asynchronously.
process->Launch(base::Bind(&DecrementUntilZero, &launch_count),
- MessageLoop::QuitClosure());
+ base::MessageLoop::QuitClosure());
}
// Then run the message loop to keep things running.
content::RunMessageLoop();
« no previous file with comments | « chrome/browser/service/service_process_control.cc ('k') | chrome/browser/sessions/base_session_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698