| 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..3ab55880f759ca9e05622be5a02ca8b418425d3d 100644
|
| --- a/chrome/browser/profiles/profile_impl.cc
|
| +++ b/chrome/browser/profiles/profile_impl.cc
|
| @@ -12,6 +12,7 @@
|
| #include "base/file_util.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/path_service.h"
|
| +#include "base/string_tokenizer.h"
|
| #include "base/string_util.h"
|
| #include "base/utf_string_conversions.h"
|
| #include "chrome/browser/autocomplete/autocomplete_classifier.h"
|
| @@ -417,6 +418,15 @@ void ProfileImpl::InitExtensions(bool extensions_enabled) {
|
| extensions_enabled));
|
|
|
| extension_service_->component_loader()->AddDefaultComponentExtensions();
|
| + if (command_line->HasSwitch(switches::kLoadComponentExtension)) {
|
| + std::string path_list = command_line->GetSwitchValueASCII(
|
| + switches::kLoadComponentExtension);
|
| + StringTokenizer t(path_list, ",");
|
| + while (t.GetNext()) {
|
| + extension_service_->component_loader()->AddFromCommandLine(
|
| + FilePath(t.token()));
|
| + }
|
| + }
|
| extension_service_->Init();
|
|
|
| if (extensions_enabled) {
|
|
|