diff options
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"; } |