summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-26 04:54:09 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-26 04:54:09 +0000
commitf8bf62e85f15247e9804ba2494f9b7595f7504eb (patch)
tree0796d77df8c562c9787a252cce5f3180551e03ce /chrome/browser/extensions
parent4a813cc835bcd26f2c2eea3fd734644a58ec45f2 (diff)
downloadchromium_src-f8bf62e85f15247e9804ba2494f9b7595f7504eb.zip
chromium_src-f8bf62e85f15247e9804ba2494f9b7595f7504eb.tar.gz
chromium_src-f8bf62e85f15247e9804ba2494f9b7595f7504eb.tar.bz2
Revert 57460 - Add hidden component app for web store.
This patch adds a component which does not appear on the NTP, but does enforce that gallery urls are isolated in their own process. This is in anticipation of exposing extension api bindings to the gallery so it can install/detect/uninstall extensions & apps. Note that this patch works correctly with the --apps-gallery-url. If specified, the replacement url will be inserted into the component app's extent BUG=27431 Review URL: http://codereview.chromium.org/3116040 TBR=rafaelw@chromium.org Review URL: http://codereview.chromium.org/3180027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57468 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r--chrome/browser/extensions/extensions_service.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc
index 3fb4a91..169f15f 100644
--- a/chrome/browser/extensions/extensions_service.cc
+++ b/chrome/browser/extensions/extensions_service.cc
@@ -530,21 +530,6 @@ void ExtensionsService::LoadComponentExtensions() {
return;
}
- // In order for the --apps-gallery-url switch to work with the gallery
- // process isolation, we must insert any provided value into the component
- // app's launch url and web extent.
- if (extension->id() == extension_misc::kWebStoreAppId ) {
- GURL gallery_url(CommandLine::ForCurrentProcess()
- ->GetSwitchValueASCII(switches::kAppsGalleryURL));
- if (gallery_url.is_valid()) {
- extension->set_launch_web_url(gallery_url.spec());
- URLPattern pattern(URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS);
- pattern.Parse(gallery_url.spec());
- pattern.set_path(pattern.path() + '*');
- extension->web_extent().AddPattern(pattern);
- }
- }
-
OnExtensionLoaded(extension.release(), false); // Don't allow privilege
// increase.
}