| 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 d82be6a27ff5f0f0fc397708df544d56867de4c5..f269b85b05f4c66dc74147eb4a29f3bbdba8ea2f 100644
|
| --- a/chrome/browser/service/service_process_control_browsertest.cc
|
| +++ b/chrome/browser/service/service_process_control_browsertest.cc
|
| @@ -80,13 +80,13 @@ 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, new MessageLoop::QuitTask());
|
| + MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
|
| }
|
|
|
| void ProcessControlLaunchFailed() {
|
| ADD_FAILURE();
|
| // Quit the current message.
|
| - MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
|
| + MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
|
| }
|
|
|
| private:
|
| @@ -130,7 +130,7 @@ IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, LaunchTwice) {
|
| static void DecrementUntilZero(int* count) {
|
| (*count)--;
|
| if (!(*count))
|
| - MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
|
| + MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
|
| }
|
|
|
| // Invoke multiple Launch calls in succession and ensure that all the tasks
|
|
|