diff options
author | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-30 00:28:55 +0000 |
---|---|---|
committer | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-30 00:28:55 +0000 |
commit | 4d2913e3a919b1475bea30be6bac76d1581cbfd5 (patch) | |
tree | 770347643e956b794cf661e94e129834a71ba360 /chrome/browser/sync | |
parent | 8977399aeb3fa195007e608b9f8cb708025c8750 (diff) | |
download | chromium_src-4d2913e3a919b1475bea30be6bac76d1581cbfd5.zip chromium_src-4d2913e3a919b1475bea30be6bac76d1581cbfd5.tar.gz chromium_src-4d2913e3a919b1475bea30be6bac76d1581cbfd5.tar.bz2 |
Add command line flag to override gallery update urls
This will be helpful for testing installs via the web store pointing at a test
server, and potentially for testing autoupdate as well.
Also remove the kGalleryBrowsePrefix constant while I was in the neighborhood,
since it turns out it's not used anywhere in our code anymore.
BUG=63511
TEST=Run chrome with --app-gallery-update-url=<SOMEURL>. Go to the web store
and try installing an app - the request to download the .crx file should go
<SOMEURL> with some extra parameters tacked on including the extension id,
etc. instead of http://clients2.google.com/service/update2/crx.
Review URL: http://codereview.chromium.org/5119003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync')
-rw-r--r-- | chrome/browser/sync/glue/extension_util.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/sync/glue/extension_util.cc b/chrome/browser/sync/glue/extension_util.cc index a0aa08e..a02e8fa 100644 --- a/chrome/browser/sync/glue/extension_util.cc +++ b/chrome/browser/sync/glue/extension_util.cc @@ -72,10 +72,8 @@ bool IsExtensionValid(const Extension& extension) { // TODO(akalin): Relax this restriction once we've put in UI to // approve synced extensions. if (!extension.update_url().is_empty() && - (extension.update_url() != - GURL(extension_urls::kGalleryUpdateHttpUrl)) && - (extension.update_url() != - GURL(extension_urls::kGalleryUpdateHttpsUrl))) { + (extension.update_url() != Extension::GalleryUpdateUrl(false)) && + (extension.update_url() != Extension::GalleryUpdateUrl(true))) { return false; } |