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

Unified Diff: dbus/test_service.cc

Issue 2136563002: Remove calls to MessageLoop::current() in base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restore dns_config_service_posix_unittest.cc Created 4 years, 5 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
Index: dbus/test_service.cc
diff --git a/dbus/test_service.cc b/dbus/test_service.cc
index 6445f6a6467c7247896272d53140c80790028f68..4465c190d02f555bb835e7969f8d618032ef8d98 100644
--- a/dbus/test_service.cc
+++ b/dbus/test_service.cc
@@ -11,6 +11,7 @@
#include "base/bind.h"
#include "base/guid.h"
+#include "base/run_loop.h"
#include "base/test/test_timeouts.h"
#include "base/threading/platform_thread.h"
#include "dbus/bus.h"
@@ -202,7 +203,7 @@ void TestService::OnExported(const std::string& interface_name,
}
}
-void TestService::Run(base::MessageLoop* message_loop) {
+void TestService::Run(base::RunLoop* run_loop) {
Bus::Options bus_options;
bus_options.bus_type = Bus::SESSION;
bus_options.connection_type = Bus::PRIVATE;
@@ -302,7 +303,7 @@ void TestService::Run(base::MessageLoop* message_loop) {
if (num_methods != kNumMethodsToExport) {
LOG(ERROR) << "The number of methods does not match";
}
- message_loop->Run();
+ run_loop->Run();
}
void TestService::Echo(MethodCall* method_call,

Powered by Google App Engine
This is Rietveld 408576698