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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContentsClient.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/java/src/org/chromium/android_webview/AwContentsClient.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java b/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java
index acd1e9d7515874b5552d7d1a5f08c7561bab18f9..e56d7d53e3417270703602e56481186bd8928d9c 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java
@@ -215,8 +215,9 @@ public abstract class AwContentsClient {
// TODO: Move this code to Aw. Once code is moved
// and merged to M37 get rid of this.
String mimeType = "*/*";
- if (mAcceptTypes != null && !mAcceptTypes.trim().isEmpty())
+ if (mAcceptTypes != null && !mAcceptTypes.trim().isEmpty()) {
mimeType = mAcceptTypes.split(";")[0];
+ }
Intent i = new Intent(Intent.ACTION_GET_CONTENT);
i.addCategory(Intent.CATEGORY_OPENABLE);

Powered by Google App Engine
This is Rietveld 408576698