| 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);
|
|
|