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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/remote/ExpandedControllerActivity.java

Issue 1561663002: Use long for times and timestamps throught Java cast code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits 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
Index: chrome/android/java/src/org/chromium/chrome/browser/media/remote/ExpandedControllerActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/remote/ExpandedControllerActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/media/remote/ExpandedControllerActivity.java
index 20775e20533246ad2e6342308540b4faf359275b..5ebad07693050449fdd4fb767a23ec24f536341b 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/remote/ExpandedControllerActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/remote/ExpandedControllerActivity.java
@@ -87,7 +87,7 @@ public class ExpandedControllerActivity
@Override
public void onSeekTo(long pos) {
if (mMediaRouteController == null) return;
- mMediaRouteController.seekTo((int) pos);
+ mMediaRouteController.seekTo(pos);
}
@Override
@@ -298,14 +298,14 @@ public class ExpandedControllerActivity
}
@Override
- public void onDurationUpdated(int durationMillis) {
+ public void onDurationUpdated(long durationMillis) {
RemoteVideoInfo videoInfo = new RemoteVideoInfo(mVideoInfo);
videoInfo.durationMillis = durationMillis;
setVideoInfo(videoInfo);
}
@Override
- public void onPositionChanged(int positionMillis) {
+ public void onPositionChanged(long positionMillis) {
RemoteVideoInfo videoInfo = new RemoteVideoInfo(mVideoInfo);
videoInfo.currentTimeMillis = positionMillis;
setVideoInfo(videoInfo);

Powered by Google App Engine
This is Rietveld 408576698