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 47681b2f7941e5f81e9af4e5967065b5ce01d86a..f58b9e6cda0cd085dccd38e81300ef8c092d8e7a 100644 |
--- a/chrome/browser/metrics/antivirus_metrics_provider_win.cc |
+++ b/chrome/browser/metrics/antivirus_metrics_provider_win.cc |
@@ -339,8 +339,9 @@ AntiVirusMetricsProvider::FillAntiVirusProductsFromWMI( |
return RESULT_FAILED_TO_INITIALIZE_COM; |
base::win::ScopedComPtr<IWbemLocator> wmi_locator; |
- HRESULT hr = wmi_locator.CreateInstance(CLSID_WbemLocator, nullptr, |
- CLSCTX_INPROC_SERVER); |
+ HRESULT hr = |
+ ::CoCreateInstance(CLSID_WbemLocator, nullptr, CLSCTX_INPROC_SERVER, |
+ IID_PPV_ARGS(&wmi_locator)); |
if (FAILED(hr)) |
return RESULT_FAILED_TO_CREATE_INSTANCE; |