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

Unified Diff: content/browser/media/android/media_session_uma_helper.cc

Issue 1579613003: Add UMA to check whether requestAudioFocus() is successful. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « content/browser/media/android/media_session_uma_helper.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/android/media_session_uma_helper.cc
diff --git a/content/browser/media/android/media_session_uma_helper.cc b/content/browser/media/android/media_session_uma_helper.cc
index b1b50cadf5fed45722e90dda1e97848df24c2fba..35e79dd9d5d325357b4c4c7f3b05ec6c27e29cc7 100644
--- a/content/browser/media/android/media_session_uma_helper.cc
+++ b/content/browser/media/android/media_session_uma_helper.cc
@@ -29,6 +29,10 @@ void MediaSessionUmaHelper::RecordSessionSuspended(
static_cast<HistogramBase::Sample>(MediaSessionSuspendedSource::Count));
}
+void MediaSessionUmaHelper::RecordRequestAudioFocusResult(bool result) const {
+ UMA_HISTOGRAM_BOOLEAN("Media.Session.RequestAudioFocusResult", result);
+}
+
void MediaSessionUmaHelper::OnSessionActive() {
current_active_time_ = clock_->Now();
}
« no previous file with comments | « content/browser/media/android/media_session_uma_helper.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698