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

Unified Diff: chrome/common/thumbnail_score.cc

Issue 7839019: Remove a static initializer in thumbnail_score.o (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 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/common/thumbnail_score.h ('k') | chrome/common/thumbnail_score_unittest.cc » ('j') | 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 055429d13a401bbccd915bfb303195b092d1f6e3..39657f1ef5e07cb484d6e7f6b6d09a625bc50118 100644
--- a/chrome/common/thumbnail_score.cc
+++ b/chrome/common/thumbnail_score.cc
@@ -10,7 +10,7 @@
using base::Time;
using base::TimeDelta;
-const TimeDelta ThumbnailScore::kUpdateThumbnailTime = TimeDelta::FromDays(1);
+const int64 ThumbnailScore::kUpdateThumbnailTimeDays = 1;
const double ThumbnailScore::kThumbnailMaximumBoringness = 0.94;
const double ThumbnailScore::kThumbnailDegradePerHour = 0.01;
@@ -131,7 +131,7 @@ bool ShouldReplaceThumbnailWith(const ThumbnailScore& current,
bool ThumbnailScore::ShouldConsiderUpdating() {
const TimeDelta time_elapsed = Time::Now() - time_at_snapshot;
- if (time_elapsed < kUpdateThumbnailTime &&
+ if (time_elapsed < TimeDelta::FromDays(kUpdateThumbnailTimeDays) &&
good_clipping && at_top && load_completed) {
// The current thumbnail is new and has good properties.
return false;
« no previous file with comments | « chrome/common/thumbnail_score.h ('k') | chrome/common/thumbnail_score_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698