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

Unified Diff: chrome/browser/extensions/webstore_install_helper.cc

Issue 15987009: Update chrome/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « chrome/browser/extensions/user_script_listener.cc ('k') | chrome/browser/google_apis/operation_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/webstore_install_helper.cc
diff --git a/chrome/browser/extensions/webstore_install_helper.cc b/chrome/browser/extensions/webstore_install_helper.cc
index be5feedb2436564f5d1e98af5b11f0b20ea4c9de..68b6049ee8fb582afdf2b096e0d1eeeed3fe9f02 100644
--- a/chrome/browser/extensions/webstore_install_helper.cc
+++ b/chrome/browser/extensions/webstore_install_helper.cc
@@ -112,7 +112,7 @@ void WebstoreInstallHelper::OnURLFetchComplete(
void WebstoreInstallHelper::StartFetchedImageDecode() {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- CHECK(utility_host_);
+ CHECK(utility_host_.get());
utility_host_->Send(new ChromeUtilityMsg_DecodeImage(fetched_icon_data_));
}
@@ -180,7 +180,7 @@ void WebstoreInstallHelper::ReportResultsIfComplete() {
return;
// The utility_host_ will take care of deleting itself after this call.
- if (utility_host_) {
+ if (utility_host_.get()) {
utility_host_->EndBatchMode();
utility_host_.reset();
}
« no previous file with comments | « chrome/browser/extensions/user_script_listener.cc ('k') | chrome/browser/google_apis/operation_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698