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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/SpeechRecognition.java

Issue 2363113003: Lint suppressions needed for Android SDK roll. (Closed)
Patch Set: Suppress alert box presubmit. Created 4 years, 3 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/public/android/java/src/org/chromium/content/browser/SpeechRecognition.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/SpeechRecognition.java b/content/public/android/java/src/org/chromium/content/browser/SpeechRecognition.java
index 8a2a54b421794d32a51e47d50eb70df03fed962f..41b253e8f46ee1f7bc53d3704e0cfe97ac003162 100644
--- a/content/public/android/java/src/org/chromium/content/browser/SpeechRecognition.java
+++ b/content/public/android/java/src/org/chromium/content/browser/SpeechRecognition.java
@@ -4,6 +4,7 @@
package org.chromium.content.browser;
+import android.annotation.SuppressLint;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
@@ -173,6 +174,8 @@ public class SpeechRecognition {
* query Android's package manager to find a suitable speech recognition provider that supports
* continuous recognition.
*/
+ // TODO(crbug.com/635567): Fix this properly.
+ @SuppressLint("WrongConstant")
public static boolean initialize(Context context) {
if (!SpeechRecognizer.isRecognitionAvailable(context)) return false;

Powered by Google App Engine
This is Rietveld 408576698