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

Unified Diff: dbus/bus.cc

Issue 16012018: Cleanup: Put DBus unit tests in the dbus namespace, so one does not need to write dbus:: everywhere… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 | « no previous file | dbus/bus_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/bus.cc
===================================================================
--- dbus/bus.cc (revision 205628)
+++ dbus/bus.cc (working copy)
@@ -123,7 +123,7 @@
}
// Starts monitoring the timeout.
- void StartMonitoring(dbus::Bus* bus) {
+ void StartMonitoring(Bus* bus) {
bus->PostDelayedTaskToDBusThread(FROM_HERE,
base::Bind(&Timeout::HandleTimeout,
this),
@@ -227,7 +227,7 @@
}
ObjectProxy* Bus::GetObjectProxyWithOptions(const std::string& service_name,
- const dbus::ObjectPath& object_path,
+ const ObjectPath& object_path,
int options) {
AssertOnOriginThread();
@@ -255,7 +255,7 @@
}
bool Bus::RemoveObjectProxyWithOptions(const std::string& service_name,
- const dbus::ObjectPath& object_path,
+ const ObjectPath& object_path,
int options,
const base::Closure& callback) {
AssertOnOriginThread();
@@ -276,9 +276,8 @@
return false;
}
-void Bus::RemoveObjectProxyInternal(
- scoped_refptr<dbus::ObjectProxy> object_proxy,
- const base::Closure& callback) {
+void Bus::RemoveObjectProxyInternal(scoped_refptr<ObjectProxy> object_proxy,
+ const base::Closure& callback) {
AssertOnDBusThread();
object_proxy.get()->Detach();
@@ -325,7 +324,7 @@
}
void Bus::UnregisterExportedObjectInternal(
- scoped_refptr<dbus::ExportedObject> exported_object) {
+ scoped_refptr<ExportedObject> exported_object) {
AssertOnDBusThread();
exported_object->Unregister();
@@ -782,7 +781,8 @@
if (dbus_connection_get_dispatch_status(connection_) ==
DBUS_DISPATCH_DATA_REMAINS) {
while (dbus_connection_dispatch(connection_) ==
- DBUS_DISPATCH_DATA_REMAINS);
+ DBUS_DISPATCH_DATA_REMAINS) {
+ }
}
}
« no previous file with comments | « no previous file | dbus/bus_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698