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

Unified Diff: device/generic_sensor/platform_sensor_reader_win.cc

Issue 2870263002: Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf (Closed)
Patch Set: Rebase to 2a6f440 Created 3 years, 7 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: device/generic_sensor/platform_sensor_reader_win.cc
diff --git a/device/generic_sensor/platform_sensor_reader_win.cc b/device/generic_sensor/platform_sensor_reader_win.cc
index 566d69688669b0fab6ab1d9b123a270c086bd2bc..89d7819053d3e1342522ff8cd0a0a10c5ac4d828 100644
--- a/device/generic_sensor/platform_sensor_reader_win.cc
+++ b/device/generic_sensor/platform_sensor_reader_win.cc
@@ -357,15 +357,15 @@ base::win::ScopedComPtr<ISensor> PlatformSensorReaderWin::GetSensorForType(
base::win::ScopedComPtr<ISensorManager> sensor_manager) {
base::win::ScopedComPtr<ISensor> sensor;
base::win::ScopedComPtr<ISensorCollection> sensor_collection;
- HRESULT hr = sensor_manager->GetSensorsByType(sensor_type,
- sensor_collection.Receive());
+ HRESULT hr = sensor_manager->GetSensorsByType(
+ sensor_type, sensor_collection.GetAddressOf());
if (FAILED(hr) || !sensor_collection)
return sensor;
ULONG count = 0;
hr = sensor_collection->GetCount(&count);
if (SUCCEEDED(hr) && count > 0)
- sensor_collection->GetAt(0, sensor.Receive());
+ sensor_collection->GetAt(0, sensor.GetAddressOf());
return sensor;
}
@@ -439,7 +439,7 @@ bool PlatformSensorReaderWin::SetReportingInterval(
if (SUCCEEDED(hr)) {
base::win::ScopedComPtr<IPortableDeviceValues> return_props;
- hr = sensor_->SetProperties(props.Get(), return_props.Receive());
+ hr = sensor_->SetProperties(props.Get(), return_props.GetAddressOf());
return SUCCEEDED(hr);
}
}
« no previous file with comments | « content/browser/renderer_host/legacy_render_widget_host_win.cc ('k') | device/sensors/data_fetcher_shared_memory_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698