summaryrefslogtreecommitdiffstats
path: root/chrome/browser/service/service_process_control_browsertest.cc
diff options
context:
space:
mode:
authorxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-28 22:08:16 +0000
committerxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-28 22:08:16 +0000
commitb3a25098c4a6895e1acd139146d618094dbd4df8 (patch)
treea344a722e481f117b63e701ba26108339dd7296f /chrome/browser/service/service_process_control_browsertest.cc
parent3d8ab9f85ac4bd6e49213ab5bfbd1e620e24d261 (diff)
downloadchromium_src-b3a25098c4a6895e1acd139146d618094dbd4df8.zip
chromium_src-b3a25098c4a6895e1acd139146d618094dbd4df8.tar.gz
chromium_src-b3a25098c4a6895e1acd139146d618094dbd4df8.tar.bz2
chrome: Use base::MessageLoop. (Part 3)
This CL updates chrome/browser/* other than chrome/browser/ui which is in another CL. BUG=236029 TBR=brettw Review URL: https://chromiumcodereview.appspot.com/14113053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202664 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/service/service_process_control_browsertest.cc')
-rw-r--r--chrome/browser/service/service_process_control_browsertest.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/chrome/browser/service/service_process_control_browsertest.cc b/chrome/browser/service/service_process_control_browsertest.cc
index 4c5bb8d..5922b46 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();