diff options
Diffstat (limited to 'chrome/common/extensions/extension.cc')
-rw-r--r-- | chrome/common/extensions/extension.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc index 8b9c39f..41c260e 100644 --- a/chrome/common/extensions/extension.cc +++ b/chrome/common/extensions/extension.cc @@ -1854,8 +1854,7 @@ GURL Extension::GetHomepageURL() const { if (homepage_url_.is_valid()) return homepage_url_; - if (update_url()!= GURL(extension_urls::kGalleryUpdateHttpsUrl) && - update_url()!= GURL(extension_urls::kGalleryUpdateHttpUrl)) + if (!UpdatesFromGallery()) return GURL(); // TODO(erikkay): This may not be entirely correct with the webstore. @@ -2193,6 +2192,11 @@ bool Extension::CanExecuteScriptEverywhere() const { return false; } +bool Extension::UpdatesFromGallery() const { + return update_url() == GURL(extension_urls::kGalleryUpdateHttpsUrl) || + update_url() == GURL(extension_urls::kGalleryUpdateHttpUrl); +} + ExtensionInfo::ExtensionInfo(const DictionaryValue* manifest, const std::string& id, const FilePath& path, |