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

Unified Diff: chrome/browser/ui/webui/options/clear_browser_data_handler.cc

Issue 1008333002: Move time constants to base::Time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Time -> base::Time Created 5 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/ui/webui/options/clear_browser_data_handler.cc
diff --git a/chrome/browser/ui/webui/options/clear_browser_data_handler.cc b/chrome/browser/ui/webui/options/clear_browser_data_handler.cc
index fe7d925bba27866493c51460cd4a505a4a36c75a..e21383286f4e12a53ff0e6277ff3fafdba2e29a9 100644
--- a/chrome/browser/ui/webui/options/clear_browser_data_handler.cc
+++ b/chrome/browser/ui/webui/options/clear_browser_data_handler.cc
@@ -67,9 +67,8 @@ void ClearBrowserDataHandler::UpdateInfoBannerVisibility() {
base::Time lastClearBrowsingDataTime = base::Time::FromInternalValue(
profile->GetPrefs()->GetInt64(prefs::kLastClearBrowsingDataTime));
- const int64 kHoursPerDay = 24;
bool visible = (base::Time::Now() - lastClearBrowsingDataTime) <=
- base::TimeDelta::FromHours(kHoursPerDay);
+ base::TimeDelta::FromHours(base::Time::kHoursPerDay);
base::ListValue args;
args.AppendBoolean(visible);
« base/time/time.h ('K') | « chrome/browser/chromeos/policy/device_status_collector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698