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

Unified Diff: extensions/browser/api/bluetooth/bluetooth_api.h

Issue 664933004: Standardize usage of virtual/override/final in extensions/ (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
Index: extensions/browser/api/bluetooth/bluetooth_api.h
diff --git a/extensions/browser/api/bluetooth/bluetooth_api.h b/extensions/browser/api/bluetooth/bluetooth_api.h
index ece5521d13c612d071c781be39eba3f438b6c063..506b58cf6503bfb1076e90fe88fd9ccb30403c71 100644
--- a/extensions/browser/api/bluetooth/bluetooth_api.h
+++ b/extensions/browser/api/bluetooth/bluetooth_api.h
@@ -40,16 +40,16 @@ class BluetoothAPI : public BrowserContextKeyedAPI,
static BrowserContextKeyedAPIFactory<BluetoothAPI>* GetFactoryInstance();
explicit BluetoothAPI(content::BrowserContext* context);
- virtual ~BluetoothAPI();
+ ~BluetoothAPI() override;
BluetoothEventRouter* event_router();
// KeyedService implementation.
- virtual void Shutdown() override;
+ void Shutdown() override;
// EventRouter::Observer implementation.
- virtual void OnListenerAdded(const EventListenerInfo& details) override;
- virtual void OnListenerRemoved(const EventListenerInfo& details) override;
+ void OnListenerAdded(const EventListenerInfo& details) override;
+ void OnListenerRemoved(const EventListenerInfo& details) override;
private:
// BrowserContextKeyedAPI implementation.
@@ -72,10 +72,10 @@ class BluetoothGetAdapterStateFunction : public BluetoothExtensionFunction {
BLUETOOTH_GETADAPTERSTATE)
protected:
- virtual ~BluetoothGetAdapterStateFunction();
+ ~BluetoothGetAdapterStateFunction() override;
// BluetoothExtensionFunction:
- virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
+ bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
};
class BluetoothGetDevicesFunction : public BluetoothExtensionFunction {
@@ -83,10 +83,10 @@ class BluetoothGetDevicesFunction : public BluetoothExtensionFunction {
DECLARE_EXTENSION_FUNCTION("bluetooth.getDevices", BLUETOOTH_GETDEVICES)
protected:
- virtual ~BluetoothGetDevicesFunction();
+ ~BluetoothGetDevicesFunction() override;
// BluetoothExtensionFunction:
- virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
+ bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
};
class BluetoothGetDeviceFunction : public BluetoothExtensionFunction {
@@ -94,10 +94,10 @@ class BluetoothGetDeviceFunction : public BluetoothExtensionFunction {
DECLARE_EXTENSION_FUNCTION("bluetooth.getDevice", BLUETOOTH_GETDEVICE)
// BluetoothExtensionFunction:
- virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
+ bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
protected:
- virtual ~BluetoothGetDeviceFunction();
+ ~BluetoothGetDeviceFunction() override;
};
class BluetoothStartDiscoveryFunction : public BluetoothExtensionFunction {
@@ -106,10 +106,10 @@ class BluetoothStartDiscoveryFunction : public BluetoothExtensionFunction {
BLUETOOTH_STARTDISCOVERY)
protected:
- virtual ~BluetoothStartDiscoveryFunction() {}
+ ~BluetoothStartDiscoveryFunction() override {}
// BluetoothExtensionFunction:
- virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
+ bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
private:
void OnSuccessCallback();
@@ -121,10 +121,10 @@ class BluetoothStopDiscoveryFunction : public BluetoothExtensionFunction {
DECLARE_EXTENSION_FUNCTION("bluetooth.stopDiscovery", BLUETOOTH_STOPDISCOVERY)
protected:
- virtual ~BluetoothStopDiscoveryFunction() {}
+ ~BluetoothStopDiscoveryFunction() override {}
// BluetoothExtensionFunction:
- virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
+ bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
private:
void OnSuccessCallback();
« no previous file with comments | « extensions/browser/api/async_api_function.h ('k') | extensions/browser/api/bluetooth/bluetooth_api_pairing_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698