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..a5f3701ea03993762d6453aad563a328bc54fdb3 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -463,10 +463,15 @@ 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(",")); |
asargent_no_longer_on_chrome
2011/12/14 00:37:45
I guess if people have commas in their filenames t
jvoung - send to chromium...
2011/12/14 03:00:43
Yeah, I'm not sure what would be a better characte
|
+ while (t.GetNext()) { |
+ extensions::UnpackedInstaller::Create(extension_service_.get())-> |
Aaron Boodman
2011/12/14 00:30:44
You could create one instance above the beginning
jvoung - send to chromium...
2011/12/14 03:00:43
Done.
|
+ LoadFromCommandLine(FilePath(t.token())); |
+ } |
} |
} |