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

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

Issue 2389703005: Deprecate --load-component-extension command line flag (Closed)
Patch Set: Created 4 years, 2 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 d3a67ae70de60db795d4c5e6f6e9cf2ae7475d4e..3021ddab4d528732d83ca3f83b191fbf5f08cad0 100644
--- a/chrome/browser/extensions/extension_system_impl.cc
+++ b/chrome/browser/extensions/extension_system_impl.cc
@@ -233,21 +233,6 @@ void ExtensionSystemImpl::Shared::Init(bool extensions_enabled) {
extension_service_->component_loader()->AddDefaultComponentExtensions(
skip_session_extensions);
#endif
- if (command_line->HasSwitch(switches::kLoadComponentExtension)) {
- base::CommandLine::StringType path_list =
- command_line->GetSwitchValueNative(switches::kLoadComponentExtension);
- base::StringTokenizerT<base::CommandLine::StringType,
- base::CommandLine::StringType::const_iterator>
- t(path_list, FILE_PATH_LITERAL(","));
- while (t.GetNext()) {
- // Load the component extension manifest synchronously.
- // Blocking the UI thread is acceptable here since
- // this flag designated for developers.
- base::ThreadRestrictions::ScopedAllowIO allow_io;
- extension_service_->component_loader()->AddOrReplace(
- base::FilePath(t.token()));
- }
- }
app_sorting_.reset(new ChromeAppSorting(profile_));

Powered by Google App Engine
This is Rietveld 408576698