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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java

Issue 657163004: Fix Java indentation issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java b/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java
index a29a3a3ddbff64826fa767220a2da37c890e60e3..7643755f7a209ca4934a6bbf2c22765305474f6d 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java
@@ -128,17 +128,17 @@ public class ContentVideoView extends FrameLayout
// If we have never switched orientation, record the orientation
// time.
if (mPlaybackStartTime == mOrientationChangedTime) {
- if (isOrientationPortrait() != mInitialOrientation) {
- mOrientationChangedTime = System.currentTimeMillis();
- }
+ if (isOrientationPortrait() != mInitialOrientation) {
+ mOrientationChangedTime = System.currentTimeMillis();
+ }
} else {
- // if user quickly switched the orientation back and force, don't
- // count it in UMA.
- if (!mPossibleAccidentalChange &&
- isOrientationPortrait() == mInitialOrientation &&
- System.currentTimeMillis() - mOrientationChangedTime < 5000) {
- mPossibleAccidentalChange = true;
- }
+ // if user quickly switched the orientation back and force, don't
+ // count it in UMA.
+ if (!mPossibleAccidentalChange &&
+ isOrientationPortrait() == mInitialOrientation &&
+ System.currentTimeMillis() - mOrientationChangedTime < 5000) {
+ mPossibleAccidentalChange = true;
+ }
}
}
setMeasuredDimension(width, height);
@@ -261,13 +261,12 @@ public class ContentVideoView extends FrameLayout
.setMessage(message)
.setPositiveButton(mErrorButton,
new DialogInterface.OnClickListener() {
- @Override
- public void onClick(DialogInterface dialog, int whichButton) {
- /* Inform that the video is over.
- */
- onCompletion();
- }
- })
+ @Override
+ public void onClick(DialogInterface dialog, int whichButton) {
+ // Inform that the video is over.
+ onCompletion();
+ }
+ })
.setCancelable(false)
.show();
} catch (RuntimeException e) {

Powered by Google App Engine
This is Rietveld 408576698