| Index: chrome/browser/profiles/profile_impl.cc
|
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
| index 6574cd7c78e7b50247fd641e1eff7f01cf7a2209..2545d7b9ee6d6d73c0c8aa3a421d1c20cef61120 100644
|
| --- a/chrome/browser/profiles/profile_impl.cc
|
| +++ b/chrome/browser/profiles/profile_impl.cc
|
| @@ -463,10 +463,16 @@ void ProfileImpl::InitExtensions(bool extensions_enabled) {
|
| // Load any extensions specified with --load-extension.
|
| // TODO(yoz): Seems like this should move into ExtensionService::Init.
|
| if (command_line->HasSwitch(switches::kLoadExtension)) {
|
| - FilePath path = command_line->GetSwitchValuePath(
|
| + CommandLine::StringType path_list = command_line->GetSwitchValueNative(
|
| switches::kLoadExtension);
|
| - extensions::UnpackedInstaller::Create(extension_service_.get())->
|
| - LoadFromCommandLine(path);
|
| + StringTokenizerT<CommandLine::StringType,
|
| + CommandLine::StringType::const_iterator> t(path_list,
|
| + FILE_PATH_LITERAL(","));
|
| + scoped_refptr<extensions::UnpackedInstaller> installer =
|
| + extensions::UnpackedInstaller::Create(extension_service_.get());
|
| + while (t.GetNext()) {
|
| + installer->LoadFromCommandLine(FilePath(t.token()));
|
| + }
|
| }
|
| }
|
|
|
|
|