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

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

Issue 1054203002: Enable NeedsBraces check and fix some checkstyle issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added if checks Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java b/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java
index af0b0c226dee4cd4c55e2f55ab59b9dedf9b3b5a..1d1ebccd93963385a30411937a85430b5e95e0ee 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java
@@ -45,11 +45,12 @@ public class ScreenOrientationListenerTest extends ContentShellTestBase {
case ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE:
case ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT:
case ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE:
- if (expectedOrientation == currentOrientation)
+ if (expectedOrientation == currentOrientation) {
return true;
- else if (ALLOW_0_FOR_180 && expectedOrientation == 180
- && currentOrientation == 0)
+ } else if (ALLOW_0_FOR_180 && expectedOrientation == 180
+ && currentOrientation == 0) {
return true;
+ }
return false;
default:
return false;

Powered by Google App Engine
This is Rietveld 408576698