summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/extension.cc')
-rw-r--r--chrome/common/extensions/extension.cc18
1 files changed, 14 insertions, 4 deletions
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index 8e9d711..80a489b 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -1447,16 +1447,26 @@ bool Extension::InitFromValue(const DictionaryValue& source, bool require_key,
return true;
}
+GURL Extension::GalleryUrl() const {
+ if (!update_url_.DomainIs("google.com"))
+ return GURL();
+
+ GURL url(std::string(extension_urls::kGalleryBrowsePrefix) +
+ std::string("/detail/") + id_);
+
+ return url;
+}
+
std::set<FilePath> Extension::GetBrowserImages() {
std::set<FilePath> image_paths;
- // extension icons
+ // Extension icons.
for (std::map<int, std::string>::iterator iter = icons_.begin();
iter != icons_.end(); ++iter) {
image_paths.insert(FilePath::FromWStringHack(UTF8ToWide(iter->second)));
}
- // theme images
+ // Theme images.
DictionaryValue* theme_images = GetThemeImages();
if (theme_images) {
for (DictionaryValue::key_iterator it = theme_images->begin_keys();
@@ -1467,7 +1477,7 @@ std::set<FilePath> Extension::GetBrowserImages() {
}
}
- // page action icons
+ // Page action icons.
if (page_action_.get()) {
std::vector<std::string>* icon_paths = page_action_->icon_paths();
for (std::vector<std::string>::iterator iter = icon_paths->begin();
@@ -1476,7 +1486,7 @@ std::set<FilePath> Extension::GetBrowserImages() {
}
}
- // browser action icons
+ // Browser action icons.
if (browser_action_.get()) {
std::vector<std::string>* icon_paths = browser_action_->icon_paths();
for (std::vector<std::string>::iterator iter = icon_paths->begin();