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

Unified Diff: chrome/common/thumbnail_score.cc

Issue 10915092: Update thumbnail_database to store times using ToInternalValue() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/history/thumbnail_database_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/thumbnail_score.cc
diff --git a/chrome/common/thumbnail_score.cc b/chrome/common/thumbnail_score.cc
index bff3e3516b522129ecabaf5fe141f9fb659d9e6e..e2f41a0feb36b28243208c2b50c71a98efcd4fb8 100644
--- a/chrome/common/thumbnail_score.cc
+++ b/chrome/common/thumbnail_score.cc
@@ -62,13 +62,10 @@ ThumbnailScore::~ThumbnailScore() {
}
bool ThumbnailScore::Equals(const ThumbnailScore& rhs) const {
- // When testing equality we use ToTimeT() because that's the value
- // stuck in the SQL database, so we need to test equivalence with
- // that lower resolution.
return boring_score == rhs.boring_score &&
good_clipping == rhs.good_clipping &&
at_top == rhs.at_top &&
- time_at_snapshot.ToTimeT() == rhs.time_at_snapshot.ToTimeT() &&
+ time_at_snapshot == rhs.time_at_snapshot &&
redirect_hops_from_dest == rhs.redirect_hops_from_dest;
}
« no previous file with comments | « chrome/browser/history/thumbnail_database_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698