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

Unified Diff: device/sensors/data_fetcher_shared_memory_win.cc

Issue 2830893004: Migrate IID Coupled Uses of ScopedComPtr::ReceiveVoid() to IID_PPV_ARGS (Closed)
Patch Set: Created 3 years, 8 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/sensors/data_fetcher_shared_memory_win.cc
diff --git a/device/sensors/data_fetcher_shared_memory_win.cc b/device/sensors/data_fetcher_shared_memory_win.cc
index e8ad3df491b23e0555ba2e46674745597636a2bf..bfc71586baac90f461aca18a8069b3dcd6578549 100644
--- a/device/sensors/data_fetcher_shared_memory_win.cc
+++ b/device/sensors/data_fetcher_shared_memory_win.cc
@@ -8,6 +8,7 @@
#include <InitGuid.h>
#include <PortableDeviceTypes.h>
#include <Sensors.h>
+#include <objbase.h>
#include "base/logging.h"
#include "base/macros.h"
@@ -401,8 +402,7 @@ bool DataFetcherSharedMemory::RegisterForSensor(
}
base::win::ScopedComPtr<ISensorEvents> sensor_events;
- hr = event_sink->QueryInterface(__uuidof(ISensorEvents),
- sensor_events.ReceiveVoid());
+ hr = event_sink->QueryInterface(IID_PPV_ARGS(&sensor_events));
if (FAILED(hr) || !sensor_events.Get())
return false;
« no previous file with comments | « device/generic_sensor/platform_sensor_and_provider_unittest_win.cc ('k') | media/audio/win/audio_low_latency_output_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698