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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 8659002: Adding the --load-component-extension flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Loading a component extension from file system. Created 9 years, 1 month 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_file_browser_private_api.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/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) {
« no previous file with comments | « chrome/browser/extensions/extension_file_browser_private_api.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698