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

Unified Diff: chrome/browser/metrics/antivirus_metrics_provider_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: chrome/browser/metrics/antivirus_metrics_provider_win.cc
diff --git a/chrome/browser/metrics/antivirus_metrics_provider_win.cc b/chrome/browser/metrics/antivirus_metrics_provider_win.cc
index ba039156ec0327bb83c45d2a8fd9473df02c1092..c5cfad47476fb2d4d870af666983a003cf0414c6 100644
--- a/chrome/browser/metrics/antivirus_metrics_provider_win.cc
+++ b/chrome/browser/metrics/antivirus_metrics_provider_win.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/metrics/antivirus_metrics_provider_win.h"
#include <iwscapi.h>
+#include <objbase.h>
#include <stddef.h>
#include <wbemidl.h>
#include <windows.h>
@@ -239,7 +240,7 @@ AntiVirusMetricsProvider::FillAntiVirusProductsFromWSC(
base::win::ScopedComPtr<IWSCProductList> product_list;
HRESULT result =
CoCreateInstance(__uuidof(WSCProductList), nullptr, CLSCTX_INPROC_SERVER,
- __uuidof(IWSCProductList), product_list.ReceiveVoid());
+ IID_PPV_ARGS(&product_list));
if (FAILED(result))
return RESULT_FAILED_TO_CREATE_INSTANCE;
« no previous file with comments | « base/win/win_util.cc ('k') | chrome/browser/ui/views/frame/browser_window_property_manager_browsertest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698