diff options
author | skyostil <skyostil@chromium.org> | 2015-06-10 09:44:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-10 16:45:48 +0000 |
commit | 140473b16767c66fc00fd7b0e6f6cc034a6712a8 (patch) | |
tree | 5ddeba7b60262d6f86b88adfc596dba8b5eae7a4 /chrome/service/service_process.cc | |
parent | c1162b1fc5090f8561c7650aecbdc6c61032115b (diff) | |
download | chromium_src-140473b16767c66fc00fd7b0e6f6cc034a6712a8.zip chromium_src-140473b16767c66fc00fd7b0e6f6cc034a6712a8.tar.gz chromium_src-140473b16767c66fc00fd7b0e6f6cc034a6712a8.tar.bz2 |
chrome: Remove use of MessageLoopProxy and deprecated MessageLoop APIs
This patch was mostly autogenerated with https://codereview.chromium.org/1010073002/.
BUG=465354
Review URL: https://codereview.chromium.org/1167163002
Cr-Commit-Position: refs/heads/master@{#333745}
Diffstat (limited to 'chrome/service/service_process.cc')
-rw-r--r-- | chrome/service/service_process.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc index 3bed9fe..79d3ba0 100644 --- a/chrome/service/service_process.cc +++ b/chrome/service/service_process.cc @@ -11,11 +11,14 @@ #include "base/command_line.h" #include "base/environment.h" #include "base/i18n/rtl.h" +#include "base/location.h" #include "base/memory/singleton.h" #include "base/path_service.h" #include "base/prefs/json_pref_store.h" +#include "base/single_thread_task_runner.h" #include "base/strings/string16.h" #include "base/strings/utf_string_conversions.h" +#include "base/thread_task_runner_handle.h" #include "base/values.h" #include "chrome/common/chrome_constants.h" #include "chrome/common/chrome_paths.h" @@ -193,7 +196,7 @@ bool ServiceProcess::Initialize(base::MessageLoopForUI* message_loop, // After the IPC server has started we signal that the service process is // ready. if (!service_process_state_->SignalReady( - io_thread_->message_loop_proxy().get(), + io_thread_->task_runner().get(), base::Bind(&ServiceProcess::Terminate, base::Unretained(this)))) { return false; } @@ -253,7 +256,8 @@ void ServiceProcess::Shutdown() { } void ServiceProcess::Terminate() { - main_message_loop_->PostTask(FROM_HERE, base::MessageLoop::QuitClosure()); + main_message_loop_->task_runner()->PostTask(FROM_HERE, + base::MessageLoop::QuitClosure()); } bool ServiceProcess::HandleClientDisconnect() { @@ -325,7 +329,7 @@ void ServiceProcess::OnServiceDisabled() { } void ServiceProcess::ScheduleShutdownCheck() { - base::MessageLoop::current()->PostDelayedTask( + base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( FROM_HERE, base::Bind(&ServiceProcess::ShutdownIfNeeded, base::Unretained(this)), base::TimeDelta::FromSeconds(kShutdownDelaySeconds)); |