diff options
Diffstat (limited to 'chrome/browser/browser_init.cc')
| -rw-r--r-- | chrome/browser/browser_init.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc index ce4febe..2e94348 100644 --- a/chrome/browser/browser_init.cc +++ b/chrome/browser/browser_init.cc @@ -222,6 +222,15 @@ bool BrowserInit::LaunchWithProfile::Launch(Profile* profile, } } + // Start up the extensions service + profile->InitExtensions(); + if (parsed_command_line.HasSwitch(switches::kInstallExtension)) { + std::wstring path_string = + parsed_command_line.GetSwitchValue(switches::kInstallExtension); + FilePath path = FilePath::FromWStringHack(path_string); + profile->GetExtensionsService()->InstallExtension(path); + } + return true; } |
