Index: chrome/common/extensions/manifest_url_handler.cc |
diff --git a/chrome/common/extensions/manifest_url_handler.cc b/chrome/common/extensions/manifest_url_handler.cc |
index 1d15f40e3724427fd00af361d18f042501e59d6a..04afe9ced0a551068d99be663a8fc22a88b3916c 100644 |
--- a/chrome/common/extensions/manifest_url_handler.cc |
+++ b/chrome/common/extensions/manifest_url_handler.cc |
@@ -55,7 +55,7 @@ const GURL ManifestURL::GetHomepageURL(const Extension* extension) { |
const GURL& homepage_url = GetManifestURL(extension, keys::kHomepageURL); |
if (homepage_url.is_valid()) |
return homepage_url; |
- return extension->UpdatesFromGallery() ? |
+ return UpdatesFromGallery(extension) ? |
GURL(extension_urls::GetWebstoreItemDetailURLPrefix() + extension->id()) : |
GURL::EmptyGURL(); |
} |
@@ -66,6 +66,11 @@ const GURL& ManifestURL::GetUpdateURL(const Extension* extension) { |
} |
// static |
+bool ManifestURL::UpdatesFromGallery(const Extension* extension) { |
+ return extension_urls::IsWebstoreUpdateUrl(GetUpdateURL(extension)); |
+} |
+ |
+// static |
const GURL& ManifestURL::GetOptionsPage(const Extension* extension) { |
return GetManifestURL(extension, keys::kOptionsPage); |
} |