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

Unified Diff: chrome/browser/metrics/antivirus_metrics_provider_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: 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 c5cfad47476fb2d4d870af666983a003cf0414c6..47681b2f7941e5f81e9af4e5967065b5ce01d86a 100644
--- a/chrome/browser/metrics/antivirus_metrics_provider_win.cc
+++ b/chrome/browser/metrics/antivirus_metrics_provider_win.cc
@@ -347,7 +347,7 @@ AntiVirusMetricsProvider::FillAntiVirusProductsFromWMI(
base::win::ScopedComPtr<IWbemServices> wmi_services;
hr = wmi_locator->ConnectServer(
base::win::ScopedBstr(L"ROOT\\SecurityCenter2"), nullptr, nullptr,
- nullptr, 0, nullptr, nullptr, wmi_services.Receive());
+ nullptr, 0, nullptr, nullptr, wmi_services.GetAddressOf());
if (FAILED(hr))
return RESULT_FAILED_TO_CONNECT_TO_WMI;
@@ -366,7 +366,7 @@ AntiVirusMetricsProvider::FillAntiVirusProductsFromWMI(
hr = wmi_services->ExecQuery(
query_language, query,
WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY, nullptr,
- enumerator.Receive());
+ enumerator.GetAddressOf());
if (FAILED(hr))
return RESULT_FAILED_TO_EXEC_WMI_QUERY;
@@ -375,7 +375,7 @@ AntiVirusMetricsProvider::FillAntiVirusProductsFromWMI(
while (true) {
base::win::ScopedComPtr<IWbemClassObject> class_object;
ULONG items_returned = 0;
- hr = enumerator->Next(WBEM_INFINITE, 1, class_object.Receive(),
+ hr = enumerator->Next(WBEM_INFINITE, 1, class_object.GetAddressOf(),
&items_returned);
if (FAILED(hr))
return RESULT_FAILED_TO_ITERATE_RESULTS;
« no previous file with comments | « chrome/browser/media_galleries/win/mtp_device_operations_util.cc ('k') | chrome/browser/platform_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698