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

Unified Diff: dbus/exported_object.cc

Issue 9668018: dbus: remove service name from ExportedObject (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pay more attention when fixing mock Created 8 years, 9 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/exported_object.h ('k') | dbus/mock_bus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/exported_object.cc
diff --git a/dbus/exported_object.cc b/dbus/exported_object.cc
index 730c98b2ee7634fd8cbf9f4595d03a5872e7892a..7c4bada3bbcff3c38b796e84ca608df1e224928e 100644
--- a/dbus/exported_object.cc
+++ b/dbus/exported_object.cc
@@ -35,10 +35,8 @@ std::string GetAbsoluteMethodName(
} // namespace
ExportedObject::ExportedObject(Bus* bus,
- const std::string& service_name,
const ObjectPath& object_path)
: bus_(bus),
- service_name_(service_name),
object_path_(object_path),
object_is_registered_(false) {
}
@@ -65,8 +63,6 @@ bool ExportedObject::ExportMethodAndBlock(
return false;
if (!bus_->SetUpAsyncOperations())
return false;
- if (!bus_->RequestOwnership(service_name_))
- return false;
if (!Register())
return false;
« no previous file with comments | « dbus/exported_object.h ('k') | dbus/mock_bus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698