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

Unified Diff: chromeos/dbus/cros_disks_client.cc

Issue 628883002: replace OVERRIDE and FINAL with override and final in chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « chromeos/dbus/cras_audio_client_stub_impl.h ('k') | chromeos/dbus/cryptohome_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/cros_disks_client.cc
diff --git a/chromeos/dbus/cros_disks_client.cc b/chromeos/dbus/cros_disks_client.cc
index a8758480b0cd9bca380f23ff7199517262d4beae..d29cae11a1195bcddc233801426b204e57da7f3e 100644
--- a/chromeos/dbus/cros_disks_client.cc
+++ b/chromeos/dbus/cros_disks_client.cc
@@ -102,7 +102,7 @@ class CrosDisksClientImpl : public CrosDisksClient {
const std::string& source_format,
const std::string& mount_label,
const base::Closure& callback,
- const base::Closure& error_callback) OVERRIDE {
+ const base::Closure& error_callback) override {
dbus::MethodCall method_call(cros_disks::kCrosDisksInterface,
cros_disks::kMount);
dbus::MessageWriter writer(&method_call);
@@ -129,7 +129,7 @@ class CrosDisksClientImpl : public CrosDisksClient {
virtual void Unmount(const std::string& device_path,
UnmountOptions options,
const base::Closure& callback,
- const base::Closure& error_callback) OVERRIDE {
+ const base::Closure& error_callback) override {
dbus::MethodCall method_call(cros_disks::kCrosDisksInterface,
cros_disks::kUnmount);
dbus::MessageWriter writer(&method_call);
@@ -152,7 +152,7 @@ class CrosDisksClientImpl : public CrosDisksClient {
// CrosDisksClient override.
virtual void EnumerateAutoMountableDevices(
const EnumerateAutoMountableDevicesCallback& callback,
- const base::Closure& error_callback) OVERRIDE {
+ const base::Closure& error_callback) override {
dbus::MethodCall method_call(cros_disks::kCrosDisksInterface,
cros_disks::kEnumerateAutoMountableDevices);
proxy_->CallMethod(
@@ -166,7 +166,7 @@ class CrosDisksClientImpl : public CrosDisksClient {
// CrosDisksClient override.
virtual void EnumerateMountEntries(
const EnumerateMountEntriesCallback& callback,
- const base::Closure& error_callback) OVERRIDE {
+ const base::Closure& error_callback) override {
dbus::MethodCall method_call(cros_disks::kCrosDisksInterface,
cros_disks::kEnumerateMountEntries);
proxy_->CallMethod(
@@ -181,7 +181,7 @@ class CrosDisksClientImpl : public CrosDisksClient {
virtual void Format(const std::string& device_path,
const std::string& filesystem,
const base::Closure& callback,
- const base::Closure& error_callback) OVERRIDE {
+ const base::Closure& error_callback) override {
dbus::MethodCall method_call(cros_disks::kCrosDisksInterface,
cros_disks::kFormat);
dbus::MessageWriter writer(&method_call);
@@ -202,7 +202,7 @@ class CrosDisksClientImpl : public CrosDisksClient {
virtual void GetDeviceProperties(
const std::string& device_path,
const GetDevicePropertiesCallback& callback,
- const base::Closure& error_callback) OVERRIDE {
+ const base::Closure& error_callback) override {
dbus::MethodCall method_call(cros_disks::kCrosDisksInterface,
cros_disks::kGetDeviceProperties);
dbus::MessageWriter writer(&method_call);
@@ -218,7 +218,7 @@ class CrosDisksClientImpl : public CrosDisksClient {
// CrosDisksClient override.
virtual void SetMountEventHandler(
- const MountEventHandler& mount_event_handler) OVERRIDE {
+ const MountEventHandler& mount_event_handler) override {
static const SignalEventTuple kSignalEventTuples[] = {
{ cros_disks::kDeviceAdded, CROS_DISKS_DEVICE_ADDED },
{ cros_disks::kDeviceScanned, CROS_DISKS_DEVICE_SCANNED },
@@ -244,7 +244,7 @@ class CrosDisksClientImpl : public CrosDisksClient {
// CrosDisksClient override.
virtual void SetMountCompletedHandler(
- const MountCompletedHandler& mount_completed_handler) OVERRIDE {
+ const MountCompletedHandler& mount_completed_handler) override {
proxy_->ConnectToSignal(
cros_disks::kCrosDisksInterface,
cros_disks::kMountCompleted,
@@ -257,7 +257,7 @@ class CrosDisksClientImpl : public CrosDisksClient {
// CrosDisksClient override.
virtual void SetFormatCompletedHandler(
- const FormatCompletedHandler& format_completed_handler) OVERRIDE {
+ const FormatCompletedHandler& format_completed_handler) override {
proxy_->ConnectToSignal(
cros_disks::kCrosDisksInterface,
cros_disks::kFormatCompleted,
@@ -269,7 +269,7 @@ class CrosDisksClientImpl : public CrosDisksClient {
}
protected:
- virtual void Init(dbus::Bus* bus) OVERRIDE {
+ virtual void Init(dbus::Bus* bus) override {
proxy_ = bus->GetObjectProxy(
cros_disks::kCrosDisksServiceName,
dbus::ObjectPath(cros_disks::kCrosDisksServicePath));
@@ -463,12 +463,12 @@ class CrosDisksClientStubImpl : public CrosDisksClient {
virtual ~CrosDisksClientStubImpl() {}
// CrosDisksClient overrides:
- virtual void Init(dbus::Bus* bus) OVERRIDE {}
+ virtual void Init(dbus::Bus* bus) override {}
virtual void Mount(const std::string& source_path,
const std::string& source_format,
const std::string& mount_label,
const base::Closure& callback,
- const base::Closure& error_callback) OVERRIDE {
+ const base::Closure& error_callback) override {
// This stub implementation only accepts archive mount requests.
const MountType type = MOUNT_TYPE_ARCHIVE;
@@ -498,7 +498,7 @@ class CrosDisksClientStubImpl : public CrosDisksClient {
virtual void Unmount(const std::string& device_path,
UnmountOptions options,
const base::Closure& callback,
- const base::Closure& error_callback) OVERRIDE {
+ const base::Closure& error_callback) override {
// Not mounted.
if (mounted_to_source_path_map_.count(device_path) == 0) {
base::MessageLoopProxy::current()->PostTask(FROM_HERE, error_callback);
@@ -519,7 +519,7 @@ class CrosDisksClientStubImpl : public CrosDisksClient {
virtual void EnumerateAutoMountableDevices(
const EnumerateAutoMountableDevicesCallback& callback,
- const base::Closure& error_callback) OVERRIDE {
+ const base::Closure& error_callback) override {
std::vector<std::string> device_paths;
base::MessageLoopProxy::current()->PostTask(
FROM_HERE, base::Bind(callback, device_paths));
@@ -527,7 +527,7 @@ class CrosDisksClientStubImpl : public CrosDisksClient {
virtual void EnumerateMountEntries(
const EnumerateMountEntriesCallback& callback,
- const base::Closure& error_callback) OVERRIDE {
+ const base::Closure& error_callback) override {
std::vector<MountEntry> entries;
base::MessageLoopProxy::current()->PostTask(
FROM_HERE, base::Bind(callback, entries));
@@ -536,29 +536,29 @@ class CrosDisksClientStubImpl : public CrosDisksClient {
virtual void Format(const std::string& device_path,
const std::string& filesystem,
const base::Closure& callback,
- const base::Closure& error_callback) OVERRIDE {
+ const base::Closure& error_callback) override {
base::MessageLoopProxy::current()->PostTask(FROM_HERE, error_callback);
}
virtual void GetDeviceProperties(
const std::string& device_path,
const GetDevicePropertiesCallback& callback,
- const base::Closure& error_callback) OVERRIDE {
+ const base::Closure& error_callback) override {
base::MessageLoopProxy::current()->PostTask(FROM_HERE, error_callback);
}
virtual void SetMountEventHandler(
- const MountEventHandler& mount_event_handler) OVERRIDE {
+ const MountEventHandler& mount_event_handler) override {
mount_event_handler_ = mount_event_handler;
}
virtual void SetMountCompletedHandler(
- const MountCompletedHandler& mount_completed_handler) OVERRIDE {
+ const MountCompletedHandler& mount_completed_handler) override {
mount_completed_handler_ = mount_completed_handler;
}
virtual void SetFormatCompletedHandler(
- const FormatCompletedHandler& format_completed_handler) OVERRIDE {
+ const FormatCompletedHandler& format_completed_handler) override {
format_completed_handler_ = format_completed_handler;
}
« no previous file with comments | « chromeos/dbus/cras_audio_client_stub_impl.h ('k') | chromeos/dbus/cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698