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

Unified Diff: chrome/browser/ui/app_list/extension_uninstaller.cc

Issue 284103002: Replace "external_install" boolean parameter with explicit enumeration in ExtensionUninstall method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address issue exposed by failing unit test. Created 6 years, 5 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/ui/app_list/extension_uninstaller.cc
diff --git a/chrome/browser/ui/app_list/extension_uninstaller.cc b/chrome/browser/ui/app_list/extension_uninstaller.cc
index a60a744c1ad8315419a67b8684b31a46b62e4cfe..dd4b23f3f87d0f59a7bf44ceec98d328b682900c 100644
--- a/chrome/browser/ui/app_list/extension_uninstaller.cc
+++ b/chrome/browser/ui/app_list/extension_uninstaller.cc
@@ -42,9 +42,8 @@ void ExtensionUninstaller::ExtensionUninstallAccepted() {
const extensions::Extension* extension =
service->GetInstalledExtension(app_id_);
if (extension) {
- service->UninstallExtension(app_id_,
- false, /* external_uninstall*/
- NULL);
+ service->UninstallExtension(
+ app_id_, ExtensionService::UNINSTALL_REASON_USER_INITIATED, NULL);
}
controller_->OnCloseChildDialog();
CleanUp();

Powered by Google App Engine
This is Rietveld 408576698