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; |
} |
} |