| Index: chrome/common/mac/mock_launchd.cc
|
| diff --git a/chrome/common/mac/mock_launchd.cc b/chrome/common/mac/mock_launchd.cc
|
| index 786654123cd384dd9abe477a5631f203ca16bcc3..1f1233130f6588e29925314846b84424a05cecb5 100644
|
| --- a/chrome/common/mac/mock_launchd.cc
|
| +++ b/chrome/common/mac/mock_launchd.cc
|
| @@ -18,6 +18,7 @@
|
| #include "base/mac/scoped_cftyperef.h"
|
| #include "base/macros.h"
|
| #include "base/message_loop/message_loop.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/strings/sys_string_conversions.h"
|
| @@ -226,7 +227,8 @@ CFDictionaryRef MockLaunchd::CopyDictionaryByCheckingIn(CFErrorRef* error) {
|
|
|
| bool MockLaunchd::RemoveJob(CFStringRef label, CFErrorRef* error) {
|
| remove_called_ = true;
|
| - message_loop_->PostTask(FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
|
| + message_loop_->task_runner()->PostTask(
|
| + FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
|
| return true;
|
| }
|
|
|
| @@ -235,7 +237,8 @@ bool MockLaunchd::RestartJob(Domain domain,
|
| CFStringRef name,
|
| CFStringRef session_type) {
|
| restart_called_ = true;
|
| - message_loop_->PostTask(FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
|
| + message_loop_->task_runner()->PostTask(
|
| + FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
|
| return true;
|
| }
|
|
|
|
|