| Index: chrome/android/java/src/org/chromium/chrome/browser/media/remote/RecordCastAction.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/remote/RecordCastAction.java b/chrome/android/java/src/org/chromium/chrome/browser/media/remote/RecordCastAction.java
|
| index dbb4a5fbccd0ea8b34ab63dc6e5bcf3700a25131..65e0f1a5993e44fbcf2379e3d365add6c0392d2d 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/media/remote/RecordCastAction.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/media/remote/RecordCastAction.java
|
| @@ -135,6 +135,20 @@ public class RecordCastAction {
|
| }
|
| }
|
|
|
| + /**
|
| + * Record the ratio of the time the media element was detached from the remote playback session
|
| + * to the total duration of the session (as from when the element has been attached till when
|
| + * the session stopped or disconnected), in percents.
|
| + *
|
| + * @param percentage The ratio in percents.
|
| + */
|
| + public static void recordRemoteSessionTimeWithoutMediaElementPercentage(int percentage) {
|
| + if (LibraryLoader.isInitialized()) {
|
| + RecordHistogram.recordPercentageHistogram(
|
| + "Cast.Sender.SessionTimeWithoutMediaElementPercentage", percentage);
|
| + }
|
| + }
|
| +
|
| // Cast sending
|
| private static native void nativeRecordRemotePlaybackDeviceSelected(int deviceType);
|
| private static native void nativeRecordCastPlayRequested();
|
|
|