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)); |
} |
} |