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

Unified Diff: chrome/browser/google/google_update_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
« no previous file with comments | « base/win/scoped_comptr_unittest.cc ('k') | chrome/browser/importer/ie_importer_browsertest_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google/google_update_win.cc
diff --git a/chrome/browser/google/google_update_win.cc b/chrome/browser/google/google_update_win.cc
index 4c93b43259367494b21782ab1ef0637fb87283eb..adbd19dcf6aa7f2b211d68da96d396d0fccd7107 100644
--- a/chrome/browser/google/google_update_win.cc
+++ b/chrome/browser/google/google_update_win.cc
@@ -195,8 +195,8 @@ HRESULT CreateGoogleUpdate3WebClass(
ConfigureProxyBlanket(class_factory.Get());
- return class_factory->CreateInstance(nullptr,
- IID_PPV_ARGS(google_update->Receive()));
+ return class_factory->CreateInstance(
+ nullptr, IID_PPV_ARGS(google_update->GetAddressOf()));
}
// UpdateCheckDriver -----------------------------------------------------------
@@ -526,10 +526,10 @@ HRESULT UpdateCheckDriver::BeginUpdateCheckInternal(
if (!app_bundle_) {
base::win::ScopedComPtr<IAppBundleWeb> app_bundle;
base::win::ScopedComPtr<IDispatch> dispatch;
- hresult = google_update_->createAppBundleWeb(dispatch.Receive());
+ hresult = google_update_->createAppBundleWeb(dispatch.GetAddressOf());
if (FAILED(hresult))
return hresult;
- hresult = dispatch.CopyTo(app_bundle.Receive());
+ hresult = dispatch.CopyTo(app_bundle.GetAddressOf());
if (FAILED(hresult))
return hresult;
dispatch.Reset();
@@ -572,11 +572,11 @@ HRESULT UpdateCheckDriver::BeginUpdateCheckInternal(
// this point onward result in it being released.
base::win::ScopedComPtr<IAppBundleWeb> app_bundle;
app_bundle.swap(app_bundle_);
- hresult = app_bundle->get_appWeb(0, dispatch.Receive());
+ hresult = app_bundle->get_appWeb(0, dispatch.GetAddressOf());
if (FAILED(hresult))
return hresult;
base::win::ScopedComPtr<IAppWeb> app;
- hresult = dispatch.CopyTo(app.Receive());
+ hresult = dispatch.CopyTo(app.GetAddressOf());
if (FAILED(hresult))
return hresult;
ConfigureProxyBlanket(app.Get());
@@ -595,10 +595,10 @@ bool UpdateCheckDriver::GetCurrentState(
CurrentState* state_value,
HRESULT* hresult) const {
base::win::ScopedComPtr<IDispatch> dispatch;
- *hresult = app_->get_currentState(dispatch.Receive());
+ *hresult = app_->get_currentState(dispatch.GetAddressOf());
if (FAILED(*hresult))
return false;
- *hresult = dispatch.CopyTo(current_state->Receive());
+ *hresult = dispatch.CopyTo(current_state->GetAddressOf());
if (FAILED(*hresult))
return false;
ConfigureProxyBlanket(current_state->Get());
« no previous file with comments | « base/win/scoped_comptr_unittest.cc ('k') | chrome/browser/importer/ie_importer_browsertest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698