diff options
author | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-19 19:54:28 +0000 |
---|---|---|
committer | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-19 19:54:28 +0000 |
commit | 7576451096ac79de2031a0ce55ab26da195b2f7b (patch) | |
tree | 27ecd3acd667999a976009bb06f6cacc01708391 /chrome/common/extensions/extension_constants.cc | |
parent | c0f298de177a284fd0d8e1517605b75a3d1d4d7d (diff) | |
download | chromium_src-7576451096ac79de2031a0ce55ab26da195b2f7b.zip chromium_src-7576451096ac79de2031a0ce55ab26da195b2f7b.tar.gz chromium_src-7576451096ac79de2031a0ce55ab26da195b2f7b.tar.bz2 |
Make extension installs from sync be from_webstore.
BUG=107783
TEST=enable sync, install extension; check that when synced on another browser, its Preferences entry has from_webstore: true.
Review URL: http://codereview.chromium.org/8965034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115013 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_constants.cc')
-rw-r--r-- | chrome/common/extensions/extension_constants.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension_constants.cc b/chrome/common/extensions/extension_constants.cc index 4355f0d..fb1077d 100644 --- a/chrome/common/extensions/extension_constants.cc +++ b/chrome/common/extensions/extension_constants.cc @@ -467,6 +467,11 @@ GURL GetWebstoreUpdateUrl(bool secure) { return GURL(secure ? kGalleryUpdateHttpsUrl : kGalleryUpdateHttpUrl); } +bool IsWebstoreUpdateUrl(const GURL& update_url) { + return update_url == GetWebstoreUpdateUrl(false) || + update_url == GetWebstoreUpdateUrl(true); +} + const char kGalleryBrowsePrefix[] = "https://chrome.google.com/webstore"; } |