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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 320bf6e812c9c723cc58dccd0ddc6fd675c5c275..39bc94a532adea5f17102dc9e85b1358bad713cc 100644
--- a/chrome/browser/ui/webui/voice_search_ui.cc
+++ b/chrome/browser/ui/webui/voice_search_ui.cc
@@ -79,7 +79,7 @@ content::WebUIDataSource* CreateVoiceSearchUiHtmlSource() {
void AddPair16(base::ListValue* list,
const base::string16& key,
const base::string16& value) {
- scoped_ptr<base::DictionaryValue> results(new base::DictionaryValue());
+ std::unique_ptr<base::DictionaryValue> results(new base::DictionaryValue());
results->SetString("key", key);
results->SetString("value", value);
list->Append(results.release());
@@ -158,7 +158,7 @@ class VoiceSearchDomHandler : public WebUIMessageHandler {
PopulatePageInformation();
}
- void ReturnVoiceSearchInfo(scoped_ptr<base::ListValue> info) {
+ void ReturnVoiceSearchInfo(std::unique_ptr<base::ListValue> info) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
DCHECK(info);
base::DictionaryValue voiceSearchInfo;
@@ -169,7 +169,7 @@ class VoiceSearchDomHandler : public WebUIMessageHandler {
// Fill in the data to be displayed on the page.
void PopulatePageInformation() {
// Store Key-Value pairs of about-information.
- scoped_ptr<base::ListValue> list(new base::ListValue());
+ std::unique_ptr<base::ListValue> list(new base::ListValue());
// Populate information.
AddOperatingSystemInfo(list.get());

Powered by Google App Engine
This is Rietveld 408576698