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

Unified Diff: chrome/browser/chromeos/dbus/cros_disks_client.cc

Issue 8548011: Use cros-disks signal name constants defined in system_api/dbus/service_constants.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/dbus/cros_disks_client.cc
diff --git a/chrome/browser/chromeos/dbus/cros_disks_client.cc b/chrome/browser/chromeos/dbus/cros_disks_client.cc
index e6b01c49732e765810267b24167e330b5365d907..4a72b26264d75b96e6e1ee5bc56b4c306949330d 100644
--- a/chrome/browser/chromeos/dbus/cros_disks_client.cc
+++ b/chrome/browser/chromeos/dbus/cros_disks_client.cc
@@ -174,13 +174,13 @@ class CrosDisksClientImpl : public CrosDisksClient {
MountEventHandler mount_event_handler,
MountCompletedHandler mount_completed_handler) OVERRIDE {
static const SignalEventTuple kSignalEventTuples[] = {
- { "DeviceAdded", DEVICE_ADDED },
- { "DeviceScanned", DEVICE_SCANNED },
- { "DeviceRemoved", DEVICE_REMOVED },
- { "DiskAdded", DISK_ADDED },
- { "DiskChanged", DISK_CHANGED },
- { "DiskRemoved", DISK_REMOVED },
- { "FormattingFinished", FORMATTING_FINISHED },
+ { cros_disks::kDeviceAdded, DEVICE_ADDED },
+ { cros_disks::kDeviceScanned, DEVICE_SCANNED },
+ { cros_disks::kDeviceRemoved, DEVICE_REMOVED },
+ { cros_disks::kDiskAdded, DISK_ADDED },
+ { cros_disks::kDiskChanged, DISK_CHANGED },
+ { cros_disks::kDiskRemoved, DISK_REMOVED },
+ { cros_disks::kFormattingFinished, FORMATTING_FINISHED },
};
const size_t kNumSignalEventTuples = arraysize(kSignalEventTuples);
@@ -197,7 +197,7 @@ class CrosDisksClientImpl : public CrosDisksClient {
}
proxy_->ConnectToSignal(
cros_disks::kCrosDisksInterface,
- "MountCompleted",
+ cros_disks::kMountCompleted,
base::Bind(&CrosDisksClientImpl::OnMountCompleted,
weak_ptr_factory_.GetWeakPtr(),
mount_completed_handler ),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698