| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |