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

Unified Diff: chrome/browser/google/google_update_win.cc

Issue 2792383003: Rename ScopedComPtr::Release() to ScopedComPtr::Reset() (Closed)
Patch Set: Fix New Callers 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
« no previous file with comments | « base/win/shortcut.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 91939e0ce6e3fff85c1593e79ff4e41d74b61dc8..d965613c1d35bd38f42f7c97e08561ed5c49ebfd 100644
--- a/chrome/browser/google/google_update_win.cc
+++ b/chrome/browser/google/google_update_win.cc
@@ -531,7 +531,7 @@ HRESULT UpdateCheckDriver::BeginUpdateCheckInternal(
hresult = dispatch.QueryInterface(app_bundle.Receive());
if (FAILED(hresult))
return hresult;
- dispatch.Release();
+ dispatch.Reset();
ConfigureProxyBlanket(app_bundle.get());
@@ -818,10 +818,10 @@ void UpdateCheckDriver::PollGoogleUpdate() {
// Release the reference on the COM objects before bouncing back to the
// caller's thread.
- state.Release();
- app_.Release();
- app_bundle_.Release();
- google_update_.Release();
+ state.Reset();
+ app_.Reset();
+ app_bundle_.Reset();
+ google_update_.Reset();
result_runner_->DeleteSoon(FROM_HERE, this);
}
« no previous file with comments | « base/win/shortcut.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