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

Unified Diff: chrome/browser/extensions/extension_disabled_ui.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, 6 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/extensions/extension_disabled_ui.cc
diff --git a/chrome/browser/extensions/extension_disabled_ui.cc b/chrome/browser/extensions/extension_disabled_ui.cc
index 6580ad07e2f54c9f696f16cfb6842daec3bbc4d7..450734a7b7a271520b077768d0fface3256dc2f3 100644
--- a/chrome/browser/extensions/extension_disabled_ui.cc
+++ b/chrome/browser/extensions/extension_disabled_ui.cc
@@ -352,9 +352,9 @@ void AddExtensionDisabledErrorWithIcon(base::WeakPtr<ExtensionService> service,
return;
const Extension* extension = service->GetInstalledExtension(extension_id);
if (extension) {
- GlobalErrorServiceFactory::GetForProfile(service->profile())->
- AddGlobalError(new ExtensionDisabledGlobalError(
- service, extension, icon));
+ GlobalErrorServiceFactory::GetForProfile(service->profile())
+ ->AddGlobalError(
+ new ExtensionDisabledGlobalError(service.get(), extension, icon));
}
}
« no previous file with comments | « chrome/browser/extensions/extension_action.cc ('k') | chrome/browser/extensions/extension_function_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698