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

Unified Diff: dbus/test_service.cc

Issue 7800023: Linux: use MessageLoopProxy instead of base::Thread in our DBus client library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « dbus/test_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/test_service.cc
===================================================================
--- dbus/test_service.cc (revision 99666)
+++ dbus/test_service.cc (working copy)
@@ -16,8 +16,7 @@
// Echo, SlowEcho, BrokenMethod.
const int TestService::kNumMethodsToExport = 3;
-TestService::Options::Options()
- : dbus_thread(NULL) {
+TestService::Options::Options() {
}
TestService::Options::~Options() {
@@ -25,7 +24,7 @@
TestService::TestService(const Options& options)
: base::Thread("TestService"),
- dbus_thread_(options.dbus_thread),
+ dbus_thread_message_loop_proxy_(options.dbus_thread_message_loop_proxy),
on_all_methods_exported_(false, false),
num_exported_methods_(0) {
}
@@ -100,7 +99,7 @@
Bus::Options bus_options;
bus_options.bus_type = Bus::SESSION;
bus_options.connection_type = Bus::PRIVATE;
- bus_options.dbus_thread = dbus_thread_;
+ bus_options.dbus_thread_message_loop_proxy = dbus_thread_message_loop_proxy_;
bus_ = new Bus(bus_options);
exported_object_ = bus_->GetExportedObject(
« no previous file with comments | « dbus/test_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698