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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/util/VideoSurfaceViewUtils.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/util/VideoSurfaceViewUtils.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/util/VideoSurfaceViewUtils.java b/android_webview/javatests/src/org/chromium/android_webview/test/util/VideoSurfaceViewUtils.java
index eb28048a7a47a58a5707b0ca0ae263492013e361..0508be45a2d59da80ac21a70c25b5a6a29823ec1 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/util/VideoSurfaceViewUtils.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/util/VideoSurfaceViewUtils.java
@@ -120,15 +120,14 @@ public class VideoSurfaceViewUtils {
private static int containsNumChildrenOfTypeOnUiThread(final View view,
final Class<? extends View> childType, int sum) throws Exception {
- if (childType.isInstance(view))
- return 1;
+ if (childType.isInstance(view)) return 1;
if (view instanceof ViewGroup) {
ViewGroup viewGroup = (ViewGroup) view;
- for (int i = 0; i < viewGroup.getChildCount(); i++)
+ for (int i = 0; i < viewGroup.getChildCount(); i++) {
sum += containsNumChildrenOfTypeOnUiThread(viewGroup.getChildAt(i), childType);
+ }
}
-
return sum;
}
}

Powered by Google App Engine
This is Rietveld 408576698