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

Unified Diff: chrome/browser/extensions/extension_tts_api_controller.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 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
Index: chrome/browser/extensions/extension_tts_api_controller.cc
diff --git a/chrome/browser/extensions/extension_tts_api_controller.cc b/chrome/browser/extensions/extension_tts_api_controller.cc
index 0c7210bc0c596a3e7d257370473ac89821681515..9a02c2ab5d0da37b8854555241130363327c93cd 100644
--- a/chrome/browser/extensions/extension_tts_api_controller.cc
+++ b/chrome/browser/extensions/extension_tts_api_controller.cc
@@ -240,24 +240,24 @@ ListValue* ExtensionTtsController::GetVoices(Profile* profile) {
// All platforms must send end events, and cancelled and interrupted
// events are generated from the controller.
DCHECK(platform_impl_->SendsEvent(TTS_EVENT_END));
- event_types->Append(Value::CreateStringValue(constants::kEventTypeEnd));
- event_types->Append(Value::CreateStringValue(
+ event_types->Append(base::StringValue::New(constants::kEventTypeEnd));
+ event_types->Append(base::StringValue::New(
constants::kEventTypeCancelled));
- event_types->Append(Value::CreateStringValue(
+ event_types->Append(base::StringValue::New(
constants::kEventTypeInterrupted));
if (platform_impl_->SendsEvent(TTS_EVENT_START))
- event_types->Append(Value::CreateStringValue(constants::kEventTypeStart));
+ event_types->Append(base::StringValue::New(constants::kEventTypeStart));
if (platform_impl_->SendsEvent(TTS_EVENT_WORD))
- event_types->Append(Value::CreateStringValue(constants::kEventTypeWord));
+ event_types->Append(base::StringValue::New(constants::kEventTypeWord));
if (platform_impl_->SendsEvent(TTS_EVENT_SENTENCE))
- event_types->Append(Value::CreateStringValue(
+ event_types->Append(base::StringValue::New(
constants::kEventTypeSentence));
if (platform_impl_->SendsEvent(TTS_EVENT_MARKER))
- event_types->Append(Value::CreateStringValue(
+ event_types->Append(base::StringValue::New(
constants::kEventTypeMarker));
if (platform_impl_->SendsEvent(TTS_EVENT_ERROR))
- event_types->Append(Value::CreateStringValue(
+ event_types->Append(base::StringValue::New(
constants::kEventTypeError));
result_voice->Set(constants::kEventTypesKey, event_types);
result_voices->Append(result_voice);
« no previous file with comments | « chrome/browser/extensions/extension_tts_api.cc ('k') | chrome/browser/extensions/extension_tts_engine_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698