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

Unified Diff: Source/modules/speech/SpeechRecognitionError.cpp

Issue 22572005: Remove all uses of the ASCIILiteral class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm it from wtf Created 7 years, 4 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
« no previous file with comments | « Source/modules/notifications/Notification.cpp ('k') | Source/modules/speech/SpeechSynthesis.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/SpeechRecognitionError.cpp
diff --git a/Source/modules/speech/SpeechRecognitionError.cpp b/Source/modules/speech/SpeechRecognitionError.cpp
index dd281e7da93381387a6d90b67baef9e3404295a6..0fa617b9b83eda7cc46aaeecaf0004c7bae1e7bf 100644
--- a/Source/modules/speech/SpeechRecognitionError.cpp
+++ b/Source/modules/speech/SpeechRecognitionError.cpp
@@ -33,23 +33,23 @@ static String ErrorCodeToString(SpeechRecognitionError::ErrorCode code)
{
switch (code) {
case SpeechRecognitionError::ErrorCodeOther:
- return ASCIILiteral("other");
+ return "other";
case SpeechRecognitionError::ErrorCodeNoSpeech:
- return ASCIILiteral("no-speech");
+ return "no-speech";
case SpeechRecognitionError::ErrorCodeAborted:
- return ASCIILiteral("aborted");
+ return "aborted";
case SpeechRecognitionError::ErrorCodeAudioCapture:
- return ASCIILiteral("audio-capture");
+ return "audio-capture";
case SpeechRecognitionError::ErrorCodeNetwork:
- return ASCIILiteral("network");
+ return "network";
case SpeechRecognitionError::ErrorCodeNotAllowed:
- return ASCIILiteral("not-allowed");
+ return "not-allowed";
case SpeechRecognitionError::ErrorCodeServiceNotAllowed:
- return ASCIILiteral("service-not-allowed");
+ return "service-not-allowed";
case SpeechRecognitionError::ErrorCodeBadGrammar:
- return ASCIILiteral("bad-grammar");
+ return "bad-grammar";
case SpeechRecognitionError::ErrorCodeLanguageNotSupported:
- return ASCIILiteral("language-not-supported");
+ return "language-not-supported";
}
ASSERT_NOT_REACHED();
« no previous file with comments | « Source/modules/notifications/Notification.cpp ('k') | Source/modules/speech/SpeechSynthesis.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698