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

Unified Diff: content/browser/device_sensors/data_fetcher_shared_memory_win.cc

Issue 633503002: Replacing the OVERRIDE with override and FINAL with final in content/browser/device_sensors (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: content/browser/device_sensors/data_fetcher_shared_memory_win.cc
diff --git a/content/browser/device_sensors/data_fetcher_shared_memory_win.cc b/content/browser/device_sensors/data_fetcher_shared_memory_win.cc
index 96f4a14215e141d14c58b92b651209e0ec284c1a..c537e03255186a19e19b1cb1972bc1ad7aaad2d2 100644
--- a/content/browser/device_sensors/data_fetcher_shared_memory_win.cc
+++ b/content/browser/device_sensors/data_fetcher_shared_memory_win.cc
@@ -30,15 +30,15 @@ class DataFetcherSharedMemory::SensorEventSink
virtual ~SensorEventSink() {}
// IUnknown interface
- virtual ULONG STDMETHODCALLTYPE AddRef() OVERRIDE {
+ virtual ULONG STDMETHODCALLTYPE AddRef() override {
return IUnknownImpl::AddRef();
}
- virtual ULONG STDMETHODCALLTYPE Release() OVERRIDE {
+ virtual ULONG STDMETHODCALLTYPE Release() override {
return IUnknownImpl::Release();
}
- virtual STDMETHODIMP QueryInterface(REFIID riid, void** ppv) OVERRIDE {
+ virtual STDMETHODIMP QueryInterface(REFIID riid, void** ppv) override {
if (riid == __uuidof(ISensorEvents)) {
*ppv = static_cast<ISensorEvents*>(this);
AddRef();
@@ -50,20 +50,20 @@ class DataFetcherSharedMemory::SensorEventSink
// ISensorEvents interface
STDMETHODIMP OnEvent(ISensor* sensor,
REFGUID event_id,
- IPortableDeviceValues* event_data) OVERRIDE {
+ IPortableDeviceValues* event_data) override {
return S_OK;
}
- STDMETHODIMP OnLeave(REFSENSOR_ID sensor_id) OVERRIDE {
+ STDMETHODIMP OnLeave(REFSENSOR_ID sensor_id) override {
return S_OK;
}
- STDMETHODIMP OnStateChanged(ISensor* sensor, SensorState state) OVERRIDE {
+ STDMETHODIMP OnStateChanged(ISensor* sensor, SensorState state) override {
return S_OK;
}
STDMETHODIMP OnDataUpdated(ISensor* sensor,
- ISensorDataReport* new_data) OVERRIDE {
+ ISensorDataReport* new_data) override {
if (NULL == new_data || NULL == sensor)
return E_INVALIDARG;
return UpdateSharedMemoryBuffer(sensor, new_data) ? S_OK : E_FAIL;
@@ -102,7 +102,7 @@ class DataFetcherSharedMemory::SensorEventSinkOrientation
protected:
virtual bool UpdateSharedMemoryBuffer(
- ISensor* sensor, ISensorDataReport* new_data) OVERRIDE {
+ ISensor* sensor, ISensorDataReport* new_data) override {
double alpha, beta, gamma;
bool has_alpha, has_beta, has_gamma;
@@ -145,7 +145,7 @@ class DataFetcherSharedMemory::SensorEventSinkMotion
protected:
virtual bool UpdateSharedMemoryBuffer(
- ISensor* sensor, ISensorDataReport* new_data) OVERRIDE {
+ ISensor* sensor, ISensorDataReport* new_data) override {
SENSOR_TYPE_ID sensor_type = GUID_NULL;
if (!SUCCEEDED(sensor->GetType(&sensor_type)))

Powered by Google App Engine
This is Rietveld 408576698