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

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

Issue 238723008: Remove uninstall extensions command line switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Remove switch from chrome_switches.{h,cc} Created 6 years, 8 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/startup_helper.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/startup_helper.cc
diff --git a/chrome/browser/extensions/startup_helper.cc b/chrome/browser/extensions/startup_helper.cc
index 605a93194f687d206e44bcbfe085f1988246d548..4074b5f7c849ac6145256c68fb78777493b9e84e 100644
--- a/chrome/browser/extensions/startup_helper.cc
+++ b/chrome/browser/extensions/startup_helper.cc
@@ -195,23 +195,6 @@ bool StartupHelper::ValidateCrx(const CommandLine& cmd_line,
return success;
}
-bool StartupHelper::UninstallExtension(const CommandLine& cmd_line,
- Profile* profile) {
- DCHECK(profile);
-
- if (!cmd_line.HasSwitch(switches::kUninstallExtension))
- return false;
-
- ExtensionService* extension_service = profile->GetExtensionService();
- if (!extension_service)
- return false;
-
- std::string extension_id = cmd_line.GetSwitchValueASCII(
- switches::kUninstallExtension);
- return ExtensionService::UninstallExtensionHelper(extension_service,
- extension_id);
-}
-
namespace {
class AppInstallHelper {
« no previous file with comments | « chrome/browser/extensions/startup_helper.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698