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

Unified Diff: components/favicon_base/favicon_types.cc

Issue 2866033002: [NTP Tiles] Fetch missing MostLikely tiles from a Google server (Closed)
Patch Set: Some unit-tests Created 3 years, 7 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: components/favicon_base/favicon_types.cc
diff --git a/components/favicon_base/favicon_types.cc b/components/favicon_base/favicon_types.cc
index b03f0ecd4ae4330ef4bc176c0e7d31945c272ea9..9966977e6fedf9035955846177d0bd4aca6d7b66 100644
--- a/components/favicon_base/favicon_types.cc
+++ b/components/favicon_base/favicon_types.cc
@@ -38,6 +38,12 @@ LargeIconResult::LargeIconResult(FallbackIconStyle* fallback_icon_style_in)
LargeIconResult::~LargeIconResult() {}
+bool LargeIconResult::is_empty() const {
+ return !bitmap.is_valid() &&
+ (!fallback_icon_style ||
+ fallback_icon_style->is_default_background_color);
sfiera 2017/05/09 08:53:36 I find this condition hard to read. What about:
pkotwicz 2017/05/09 17:40:34 It would be nice if FallbackIconStyle had a Fallba
jkrcal 2017/05/10 17:26:03 So far, I went for the suggestion of sfiera@. Can
jkrcal 2017/05/10 17:26:03 Done.
+}
+
// --------------------------------------------------------
// LargeIconImageResult

Powered by Google App Engine
This is Rietveld 408576698