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

Unified Diff: ui/gfx/paint_vector_icon.cc

Issue 1829353002: Fix padding in location bar bubbles to match specs on bug. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hide_background_later
Patch Set: New dependence Created 4 years, 9 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
« no previous file with comments | « chrome/browser/ui/views/location_bar/selected_keyword_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/paint_vector_icon.cc
diff --git a/ui/gfx/paint_vector_icon.cc b/ui/gfx/paint_vector_icon.cc
index 6091897f811fc773251f92deea66959cd3b0014f..087d0ee31fe093820c8f115d438fd825708316eb 100644
--- a/ui/gfx/paint_vector_icon.cc
+++ b/ui/gfx/paint_vector_icon.cc
@@ -405,7 +405,10 @@ ImageSkia CreateVectorIconWithBadge(VectorIconId id,
size_t dip_size,
SkColor color,
VectorIconId badge_id) {
- return g_icon_cache.Get().GetOrCreateIcon(id, dip_size, color, badge_id);
+ return (id == VectorIconId::VECTOR_ICON_NONE)
Evan Stade 2016/03/30 21:44:13 After thinking about this more, the thing that wor
Peter Kasting 2016/03/30 21:53:23 Why do you say most containers will ignore Preferr
+ ? gfx::ImageSkia()
+ : g_icon_cache.Get().GetOrCreateIcon(id, dip_size, color,
+ badge_id);
}
ImageSkia CreateVectorIconFromSource(const std::string& source,
« no previous file with comments | « chrome/browser/ui/views/location_bar/selected_keyword_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698