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

Unified Diff: content/shell/android/java/src/org/chromium/content_shell/Shell.java

Issue 1002883002: Fix up if statement curly braces issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/shell/android/java/src/org/chromium/content_shell/Shell.java
diff --git a/content/shell/android/java/src/org/chromium/content_shell/Shell.java b/content/shell/android/java/src/org/chromium/content_shell/Shell.java
index 977d19b994a499910dc620d2e79e0a9008f3d83d..6795c163707665ebb1a578336895afae15b39690 100644
--- a/content/shell/android/java/src/org/chromium/content_shell/Shell.java
+++ b/content/shell/android/java/src/org/chromium/content_shell/Shell.java
@@ -312,8 +312,11 @@ public class Shell extends LinearLayout {
*/
@CalledByNative
private void enableUiControl(int controlId, boolean enabled) {
- if (controlId == 0) mPrevButton.setEnabled(enabled);
- else if (controlId == 1) mNextButton.setEnabled(enabled);
+ if (controlId == 0) {
+ mPrevButton.setEnabled(enabled);
+ } else if (controlId == 1) {
+ mNextButton.setEnabled(enabled);
+ }
}
/**

Powered by Google App Engine
This is Rietveld 408576698