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

Unified Diff: chrome/browser/ui/webui/popular_sites_internals_message_handler.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/popular_sites_internals_message_handler.cc
diff --git a/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc b/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
index c5f4bbe10f543764ceeffa25365e3ab179b0f265..d6a1c3bcea7547bed209d94c47a7f15433bb9747 100644
--- a/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
+++ b/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
@@ -106,9 +106,9 @@ void PopularSitesInternalsMessageHandler::SendDownloadResult(bool success) {
}
void PopularSitesInternalsMessageHandler::SendSites() {
- scoped_ptr<base::ListValue> sites_list(new base::ListValue);
+ std::unique_ptr<base::ListValue> sites_list(new base::ListValue);
for (const PopularSites::Site& site : popular_sites_->sites()) {
- scoped_ptr<base::DictionaryValue> entry(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> entry(new base::DictionaryValue);
entry->SetString("title", site.title);
entry->SetString("url", site.url.spec());
sites_list->Append(std::move(entry));

Powered by Google App Engine
This is Rietveld 408576698