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

Unified Diff: chrome/common/service_process_util_posix.cc

Issue 1167163002: chrome: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some missing message_loop.h includes. Created 5 years, 6 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/common/service_process_util.h ('k') | chrome/common/service_process_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/service_process_util_posix.cc
diff --git a/chrome/common/service_process_util_posix.cc b/chrome/common/service_process_util_posix.cc
index 6a655cab260359b265a9dd0e6e7281f2567b14c2..9ec327c3dd29fd8da84f8e32620ff1340d164793 100644
--- a/chrome/common/service_process_util_posix.cc
+++ b/chrome/common/service_process_util_posix.cc
@@ -6,8 +6,9 @@
#include "base/basictypes.h"
#include "base/bind.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/location.h"
#include "base/posix/eintr_wrapper.h"
+#include "base/single_thread_task_runner.h"
#include "base/synchronization/waitable_event.h"
#include "chrome/common/multi_process_lock.h"
@@ -161,9 +162,8 @@ void ServiceProcessState::CreateState() {
state_->AddRef();
}
-bool ServiceProcessState::SignalReady(
- base::MessageLoopProxy* message_loop_proxy,
- const base::Closure& terminate_task) {
+bool ServiceProcessState::SignalReady(base::SingleThreadTaskRunner* task_runner,
+ const base::Closure& terminate_task) {
DCHECK(state_);
#if defined(OS_POSIX) && !defined(OS_MACOSX)
@@ -181,11 +181,9 @@ bool ServiceProcessState::SignalReady(
base::WaitableEvent signal_ready(true, false);
bool success = false;
- message_loop_proxy->PostTask(FROM_HERE,
- base::Bind(&ServiceProcessState::StateData::SignalReady,
- state_,
- &signal_ready,
- &success));
+ task_runner->PostTask(FROM_HERE,
+ base::Bind(&ServiceProcessState::StateData::SignalReady,
+ state_, &signal_ready, &success));
signal_ready.Wait();
return success;
}
« no previous file with comments | « chrome/common/service_process_util.h ('k') | chrome/common/service_process_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698