Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index 30c73a5822f240339cc5ee61bd71d2964f562ea8..416006ebe03e2108848a0630f77bce14857c269a 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -417,6 +417,11 @@ void ProfileImpl::InitExtensions(bool extensions_enabled) { |
extensions_enabled)); |
extension_service_->component_loader()->AddDefaultComponentExtensions(); |
+ if (command_line->HasSwitch(switches::kLoadComponentExtension)) { |
zel
2011/11/29 00:19:56
Can we make this flag load more than one component
SeRya
2011/11/29 01:35:25
Done.
|
+ FilePath path = command_line->GetSwitchValuePath( |
+ switches::kLoadComponentExtension); |
+ extension_service_->component_loader()->AddFromCommandLine(path); |
+ } |
extension_service_->Init(); |
if (extensions_enabled) { |