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

Unified Diff: chrome/browser/speech/extension_api/tts_extension_api.cc

Issue 2838893002: Remove base::ListValue::Set(size_t, base::Value*) (Closed)
Patch Set: Fix Compilation Error Created 3 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: chrome/browser/speech/extension_api/tts_extension_api.cc
diff --git a/chrome/browser/speech/extension_api/tts_extension_api.cc b/chrome/browser/speech/extension_api/tts_extension_api.cc
index 26160e97c6029da3dd91754438539fb5f3768a6e..bfaf3526e746dc629b3dece13a40d7eeb56ab1e2 100644
--- a/chrome/browser/speech/extension_api/tts_extension_api.cc
+++ b/chrome/browser/speech/extension_api/tts_extension_api.cc
@@ -138,7 +138,7 @@ void TtsExtensionEventHandler::OnTtsEvent(Utterance* utterance,
details->SetBoolean(constants::kIsFinalEventKey, utterance->finished());
std::unique_ptr<base::ListValue> arguments(new base::ListValue());
- arguments->Set(0, details.release());
+ arguments->Append(std::move(details));
std::unique_ptr<extensions::Event> event(
new extensions::Event(::extensions::events::TTS_ON_EVENT,
« no previous file with comments | « chrome/browser/metrics/android_metrics_provider.cc ('k') | chrome/test/chromedriver/chrome/web_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698