OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/browser/media/android/media_session_uma_helper.h" | 5 #include "content/browser/media/session/media_session_uma_helper.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/metrics/histogram_base.h" | 9 #include "base/metrics/histogram_base.h" |
10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
11 #include "base/time/default_clock.h" | 11 #include "base/time/default_clock.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 using HistogramBase = base::HistogramBase; | 15 using HistogramBase = base::HistogramBase; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 UMA_HISTOGRAM_LONG_TIMES("Media.Session.ActiveTime", total_active_time_); | 57 UMA_HISTOGRAM_LONG_TIMES("Media.Session.ActiveTime", total_active_time_); |
58 total_active_time_ = base::TimeDelta(); | 58 total_active_time_ = base::TimeDelta(); |
59 } | 59 } |
60 | 60 |
61 void MediaSessionUmaHelper::SetClockForTest( | 61 void MediaSessionUmaHelper::SetClockForTest( |
62 scoped_ptr<base::Clock> testing_clock) { | 62 scoped_ptr<base::Clock> testing_clock) { |
63 clock_ = std::move(testing_clock); | 63 clock_ = std::move(testing_clock); |
64 } | 64 } |
65 | 65 |
66 } // namespace content | 66 } // namespace content |
OLD | NEW |