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

Unified Diff: components/metrics/daily_event.cc

Issue 1819093002: Remove base_i18n dependency from //components/metrics:metrics target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « components/metrics/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/daily_event.cc
diff --git a/components/metrics/daily_event.cc b/components/metrics/daily_event.cc
index 42ba48c2784295e0b73fa87b5495dceefb6a6a4a..2ab549092513ed1d29b5303557a4a4a6f754e266 100644
--- a/components/metrics/daily_event.cc
+++ b/components/metrics/daily_event.cc
@@ -6,7 +6,6 @@
#include <utility>
-#include "base/i18n/time_formatting.h"
#include "base/metrics/histogram.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
@@ -69,8 +68,7 @@ void DailyEvent::CheckInterval() {
// The first time we call CheckInterval, we read the time stored in prefs.
last_fired_ = base::Time::FromInternalValue(
pref_service_->GetInt64(pref_name_));
- DVLOG(1) << "DailyEvent time loaded: "
- << base::TimeFormatShortDateAndTime(last_fired_);
+ DVLOG(1) << "DailyEvent time loaded: " << last_fired_;
xunjieli 2016/03/21 21:02:13 base::Time converts to a UTC timestamp automatical
if (last_fired_.is_null()) {
DVLOG(1) << "DailyEvent first run.";
RecordIntervalTypeHistogram(histogram_name_, FIRST_RUN);
« no previous file with comments | « components/metrics/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698