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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.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: android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java
index 59b53e317287cbe78ca2edaf3ff9766e95345cc0..77babfe0126e79fc3223b61970bd3ae4fe11fbe4 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java
@@ -100,10 +100,8 @@ public class AndroidScrollIntegrationTest extends AwTestBase {
@Override
public void scrollTo(int x, int y) {
- if (mMaxScrollXPix != -1)
- x = Math.min(mMaxScrollXPix, x);
- if (mMaxScrollYPix != -1)
- y = Math.min(mMaxScrollYPix, y);
+ if (mMaxScrollXPix != -1) x = Math.min(mMaxScrollXPix, x);
+ if (mMaxScrollYPix != -1) y = Math.min(mMaxScrollYPix, y);
super.scrollTo(x, y);
mOnScrollToCallbackHelper.notifyCalled();
}

Powered by Google App Engine
This is Rietveld 408576698