Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6115)

Unified Diff: chrome/common/extensions/extension_constants.cc

Issue 289533003: A bunch of remaining parts of extension content verification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small fix to how we compute the url for fetching verified contents files Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/extension_constants.cc
diff --git a/chrome/common/extensions/extension_constants.cc b/chrome/common/extensions/extension_constants.cc
index 66bded285f142f366d9bdbd584e3d71eb850dcd7..4d0956bd906bbd9fc93340cb14d509410d35435c 100644
--- a/chrome/common/extensions/extension_constants.cc
+++ b/chrome/common/extensions/extension_constants.cc
@@ -61,7 +61,11 @@ GURL GetWebstoreUpdateUrl() {
if (cmdline->HasSwitch(switches::kAppsGalleryUpdateURL))
return GURL(cmdline->GetSwitchValueASCII(switches::kAppsGalleryUpdateURL));
else
- return GURL(kGalleryUpdateHttpsUrl);
+ return GetDefaultWebstoreUpdateUrl();
+}
+
+GURL GetDefaultWebstoreUpdateUrl() {
+ return GURL(kGalleryUpdateHttpsUrl);
}
bool IsWebstoreUpdateUrl(const GURL& update_url) {

Powered by Google App Engine
This is Rietveld 408576698