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

Unified Diff: chrome/browser/ui/webui/voice_search_ui.cc

Issue 2812953002: Stop passing raw pointers to base::Value API in c/b/ui (Closed)
Patch Set: No ListValue::SetDouble 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/ui/webui/voice_search_ui.cc
diff --git a/chrome/browser/ui/webui/voice_search_ui.cc b/chrome/browser/ui/webui/voice_search_ui.cc
index 5eba13c176c1a78da352bfa6d0b19eb823aec903..6e3882b69491b42a5c3f8c8a3d4b22c47b40764f 100644
--- a/chrome/browser/ui/webui/voice_search_ui.cc
+++ b/chrome/browser/ui/webui/voice_search_ui.cc
@@ -164,7 +164,7 @@ class VoiceSearchDomHandler : public WebUIMessageHandler {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
DCHECK(info);
base::DictionaryValue voiceSearchInfo;
- voiceSearchInfo.Set("voiceSearchInfo", info.release());
+ voiceSearchInfo.Set("voiceSearchInfo", std::move(info));
web_ui()->CallJavascriptFunctionUnsafe("returnVoiceSearchInfo",
voiceSearchInfo);
}

Powered by Google App Engine
This is Rietveld 408576698