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

Unified Diff: chrome/browser/extensions/api/management/management_api.cc

Issue 556723003: Terminated extensions should be uninstalled without error now. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/management/management_api.cc
diff --git a/chrome/browser/extensions/api/management/management_api.cc b/chrome/browser/extensions/api/management/management_api.cc
index 236e2ef94535295ec2b391a6242dea05517ccc9e..bb10db227ac844473ca1ec2236b4abd18f9ff71d 100644
--- a/chrome/browser/extensions/api/management/management_api.cc
+++ b/chrome/browser/extensions/api/management/management_api.cc
@@ -599,7 +599,8 @@ bool ManagementUninstallFunctionBase::Uninstall(
bool show_confirm_dialog) {
extension_id_ = target_extension_id;
const Extension* target_extension =
- service()->GetExtensionById(extension_id_, true);
+ extensions::ExtensionRegistry::Get(GetProfile())->
Ken Rockot(use gerrit already) 2014/09/09 05:55:29 Please use browser_context() instead of GetProfile
+ GetExtensionById(extension_id_, ExtensionRegistry::EVERYTHING);
if (!target_extension ||
ui_util::ShouldNotBeVisible(target_extension, browser_context())) {
error_ = ErrorUtils::FormatErrorMessage(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698