diff options
author | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-04 06:06:06 +0000 |
---|---|---|
committer | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-04 06:06:06 +0000 |
commit | 1f56ac159cfaae8bd00472b9e81a442e99e5389e (patch) | |
tree | 0f915aeacac92d28f346b6a61210050e881ab2ad /apps/app_load_service.cc | |
parent | c6584ac8d2e57fa5193c3203e09c13fcf270474c (diff) | |
download | chromium_src-1f56ac159cfaae8bd00472b9e81a442e99e5389e.zip chromium_src-1f56ac159cfaae8bd00472b9e81a442e99e5389e.tar.gz chromium_src-1f56ac159cfaae8bd00472b9e81a442e99e5389e.tar.bz2 |
app_shell attempts to load an app when passed --app=<path/to/app>
Initialize the extensions system with a BrowserContext (not a profile). This
doesn't work yet, but allows us to see how far we can run and helps identify
the next area to work on.
BUG=None
TEST=None, for developers only
Review URL: https://codereview.chromium.org/99073004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238596 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_load_service.cc')
-rw-r--r-- | apps/app_load_service.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_load_service.cc b/apps/app_load_service.cc index afe99f8..3526566 100644 --- a/apps/app_load_service.cc +++ b/apps/app_load_service.cc @@ -21,6 +21,7 @@ using extensions::Extension; using extensions::ExtensionPrefs; +using extensions::ExtensionSystem; namespace apps { @@ -52,8 +53,10 @@ void AppLoadService::RestartApplication(const std::string& extension_id) { bool AppLoadService::LoadAndLaunch(const base::FilePath& extension_path, const CommandLine& command_line, const base::FilePath& current_dir) { + ExtensionService* extension_service = + ExtensionSystem::GetForBrowserContext(profile_)->extension_service(); std::string extension_id; - if (!extensions::UnpackedInstaller::Create(profile_->GetExtensionService())-> + if (!extensions::UnpackedInstaller::Create(extension_service)-> LoadFromCommandLine(base::FilePath(extension_path), &extension_id)) { return false; } |