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

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

Issue 3250002: Add an accordian effect to NTP. (Closed)
Patch Set: Fix menu positioning when there is a scrollbar. Created 10 years, 4 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.cc
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index 728006cc84d1da8dc8df6f73899c9c668ea09b53..0a0a9c43f26e21e6cf4be11e6656945f914f62c3 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -1704,7 +1704,15 @@ Extension::Icons Extension::GetIconResourceAllowLargerSize(
return ret;
}
-GURL Extension::GetIconUrlAllowLargerSize(Icons icon) {
+GURL Extension::GetIconURL(Icons icon) {
+ std::string path = GetIconPath(icon);
+ if (path.empty())
+ return GURL();
+ else
+ return GetResourceURL(path);
+}
+
+GURL Extension::GetIconURLAllowLargerSize(Icons icon) {
std::string path;
GetIconPathAllowLargerSize(&path, icon);
return GetResourceURL(path);
« chrome/browser/resources/ntp/most_visited.css ('K') | « chrome/common/extensions/extension.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698