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

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

Issue 2389703005: Deprecate --load-component-extension command line flag (Closed)
Patch Set: Rebase master Created 4 years 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/extension_startup_browsertest.cc ('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/extension_system_impl.cc
diff --git a/chrome/browser/extensions/extension_system_impl.cc b/chrome/browser/extensions/extension_system_impl.cc
index 6070a2dcd5b395f048b14abc37f3bb7b77ae65af..d862662ffb2202f4fef91e676ea53a63a3898c03 100644
--- a/chrome/browser/extensions/extension_system_impl.cc
+++ b/chrome/browser/extensions/extension_system_impl.cc
@@ -254,21 +254,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_));
« no previous file with comments | « chrome/browser/extensions/extension_startup_browsertest.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698