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

Side by Side Diff: components/metrics/daily_event.cc

Issue 1662523004: Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/metrics/daily_event.h" 5 #include "components/metrics/daily_event.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/i18n/time_formatting.h" 9 #include "base/i18n/time_formatting.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/prefs/pref_registry_simple.h" 11 #include "components/prefs/pref_registry_simple.h"
12 #include "base/prefs/pref_service.h" 12 #include "components/prefs/pref_service.h"
13 13
14 namespace metrics { 14 namespace metrics {
15 15
16 namespace { 16 namespace {
17 17
18 enum IntervalType { 18 enum IntervalType {
19 FIRST_RUN, 19 FIRST_RUN,
20 DAY_ELAPSED, 20 DAY_ELAPSED,
21 CLOCK_CHANGED, 21 CLOCK_CHANGED,
22 NUM_INTERVAL_TYPES 22 NUM_INTERVAL_TYPES
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // Notify all observers 100 // Notify all observers
101 for (ScopedVector<DailyEvent::Observer>::iterator it = observers_.begin(); 101 for (ScopedVector<DailyEvent::Observer>::iterator it = observers_.begin();
102 it != observers_.end(); 102 it != observers_.end();
103 ++it) { 103 ++it) {
104 (*it)->OnDailyEvent(); 104 (*it)->OnDailyEvent();
105 } 105 }
106 } 106 }
107 107
108 } // namespace metrics 108 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/cloned_install_detector_unittest.cc ('k') | components/metrics/daily_event_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698