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

Unified Diff: chrome/browser/history/history_types.cc

Issue 6651014: Applied the IconType. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: sync Created 9 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: chrome/browser/history/history_types.cc
diff --git a/chrome/browser/history/history_types.cc b/chrome/browser/history/history_types.cc
index 77fc0e3ca765f02a0da0752adfb49d705c17e04f..861f6d2ee6d74f71b73001328f2542e571aed2d3 100644
--- a/chrome/browser/history/history_types.cc
+++ b/chrome/browser/history/history_types.cc
@@ -410,4 +410,17 @@ IconMapping::IconMapping()
IconMapping::~IconMapping() {}
+
+FaviconData::FaviconData()
+ : known_icon(false),
+ expired(false),
+ icon_type(history::INVALID_ICON) {
+}
+
+FaviconData::~FaviconData() {}
+
+bool FaviconData::is_valid() {
+ return known_icon && image_data.get() && image_data->size();
+}
+
} // namespace history

Powered by Google App Engine
This is Rietveld 408576698