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

Unified Diff: components/update_client/background_downloader_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: components/update_client/background_downloader_win.cc
diff --git a/components/update_client/background_downloader_win.cc b/components/update_client/background_downloader_win.cc
index cdbc519706a8e944607e3c2a4a8e132076a2681c..4381098f3bce3d1a11f3cef614de6035d3a87ae0 100644
--- a/components/update_client/background_downloader_win.cc
+++ b/components/update_client/background_downloader_win.cc
@@ -6,6 +6,7 @@
#include <atlbase.h>
#include <atlcom.h>
+#include <objbase.h>
#include <stddef.h>
#include <stdint.h>
@@ -140,7 +141,7 @@ template <typename T>
HRESULT GetInterfaceFromGit(const ScopedComPtr<IGlobalInterfaceTable>& git,
DWORD cookie,
ScopedComPtr<T>* p) {
- return git->GetInterfaceFromGlobal(cookie, __uuidof(T), p->ReceiveVoid());
+ return git->GetInterfaceFromGlobal(cookie, IID_PPV_ARGS(p));
}
// Registers an interface pointer in GIT and returns its corresponding |cookie|.
« no previous file with comments | « chrome/browser/win/jumplist_updater.cc ('k') | device/generic_sensor/platform_sensor_and_provider_unittest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698