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

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: Rebase 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
Index: ui/gfx/paint_vector_icon.cc
diff --git a/ui/gfx/paint_vector_icon.cc b/ui/gfx/paint_vector_icon.cc
index 7121fde314d5a6933fd93de8c7773f26c82ceac3..234af06dbbbfe787f5d42219d8c6d356e0f3c89a 100644
--- a/ui/gfx/paint_vector_icon.cc
+++ b/ui/gfx/paint_vector_icon.cc
@@ -401,7 +401,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)
+ ? gfx::ImageSkia()
+ : g_icon_cache.Get().GetOrCreateIcon(id, dip_size, color,
+ badge_id);
}
ImageSkia CreateVectorIconFromSource(const std::string& source,

Powered by Google App Engine
This is Rietveld 408576698