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

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

Issue 2166513002: Create --disable-extensions-except switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed ExtensionServiceTest.ExternalUninstall test failing Created 4 years, 4 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_system_impl.cc
diff --git a/chrome/browser/extensions/extension_system_impl.cc b/chrome/browser/extensions/extension_system_impl.cc
index 7ad271fb3f43013de9764883fb31efe972d087de..d3a67ae70de60db795d4c5e6f6e9cf2ae7475d4e 100644
--- a/chrome/browser/extensions/extension_system_impl.cc
+++ b/chrome/browser/extensions/extension_system_impl.cc
@@ -262,25 +262,6 @@ void ExtensionSystemImpl::Shared::Init(bool extensions_enabled) {
content::URLDataSource::Add(profile_, new ExtensionIconSource(profile_));
quota_service_.reset(new QuotaService);
-
- if (extensions_enabled) {
- // Load any extensions specified with --load-extension.
- // TODO(yoz): Seems like this should move into ExtensionService::Init.
- // But maybe it's no longer important.
- if (command_line->HasSwitch(switches::kLoadExtension)) {
- base::CommandLine::StringType path_list =
- command_line->GetSwitchValueNative(switches::kLoadExtension);
- base::StringTokenizerT<base::CommandLine::StringType,
- base::CommandLine::StringType::const_iterator>
- t(path_list, FILE_PATH_LITERAL(","));
- while (t.GetNext()) {
- std::string extension_id;
- UnpackedInstaller::Create(extension_service_.get())
- ->LoadFromCommandLine(base::FilePath(t.token()), &extension_id,
- false /* only_allow_apps */);
- }
- }
- }
}
void ExtensionSystemImpl::Shared::Shutdown() {

Powered by Google App Engine
This is Rietveld 408576698