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

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

Issue 1075443004: Rename from ERROR_AUDIO to ERROR_AUDIO_CAPTURE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 974191e25991b466b89df11f7a6637cb47c1a546..6d535cb9e8f308dbf89b001825555afb4ae3bb05 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
@@ -95,7 +95,7 @@ public class SpeechRecognition {
// Translate Android SpeechRecognizer errors to Web Speech API errors.
switch(error) {
case SpeechRecognizer.ERROR_AUDIO:
- code = SpeechRecognitionErrorCode.AUDIO;
+ code = SpeechRecognitionErrorCode.AUDIO_CAPTURE;
break;
case SpeechRecognizer.ERROR_CLIENT:
code = SpeechRecognitionErrorCode.ABORTED;
« no previous file with comments | « content/browser/speech/speech_recognizer_impl_unittest.cc ('k') | content/public/common/speech_recognition_error.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698