diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-19 08:58:12 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-19 08:58:12 +0000 |
commit | 7d8867df6c96bf76c040042a834af04a8ab319bc (patch) | |
tree | 3e0914651dc6093502fc65fb89631bd34031528e /chrome/browser/extensions/extensions_service.cc | |
parent | 6145198177d58f79e7ed1b44fee883ea074fc5fa (diff) | |
download | chromium_src-7d8867df6c96bf76c040042a834af04a8ab319bc.zip chromium_src-7d8867df6c96bf76c040042a834af04a8ab319bc.tar.gz chromium_src-7d8867df6c96bf76c040042a834af04a8ab319bc.tar.bz2 |
Refactor app-related manifest properties so that they don't
include the name 'app'. I think these will be useful for normal
extensions, too.
Also extract an ExtensionExtent class out of Extension. I think
this will be useful for passing by value to the IO thread.
Review URL: http://codereview.chromium.org/1025006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42091 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extensions_service.cc')
-rw-r--r-- | chrome/browser/extensions/extensions_service.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc index 62432b5..3d72258 100644 --- a/chrome/browser/extensions/extensions_service.cc +++ b/chrome/browser/extensions/extensions_service.cc @@ -216,7 +216,7 @@ void ExtensionsService::UpdateExtension(const std::string& id, NULL)); // no client (silent install) installer->set_expected_id(id); installer->set_delete_source(true); - installer->set_force_app_origin_to_download_url(true); + installer->set_force_web_origin_to_download_url(true); installer->set_original_url(download_url); installer->InstallCrx(extension_path); } @@ -511,7 +511,7 @@ void ExtensionsService::NotifyExtensionLoaded(Extension* extension) { new ChromeURLRequestContext::ExtensionInfo( extension->path(), extension->default_locale(), - extension->app_extent(), + std::vector<URLPattern>(), extension->api_permissions()))); } @@ -706,15 +706,6 @@ void ExtensionsService::OnExtensionLoaded(Extension* extension, // The extension is now loaded, remove its data from unloaded extension map. unloaded_extension_paths_.erase(extension->id()); - if (extension->IsApp() && - !CommandLine::ForCurrentProcess()->HasSwitch( - switches::kEnableExtensionApps)) { - ReportExtensionLoadError(extension->path(), errors::kAppsDisabled, - NotificationType::EXTENSION_INSTALL_ERROR, - true); // be noisy - return; - } - // TODO(aa): Need to re-evaluate this branch. Does this still make sense now // that extensions are enabled by default? if (extensions_enabled() || |