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

Side by Side Diff: content/browser/media/session/media_session_uma_helper.cc

Issue 1698933004: Make MediaSession a runtime-enabled feature on Desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698