Index: chrome/browser/ui/webui/options/startup_pages_handler.cc |
diff --git a/chrome/browser/ui/webui/options/startup_pages_handler.cc b/chrome/browser/ui/webui/options/startup_pages_handler.cc |
index a06fa42f1eecee4e24fcf469935f6a30cb9b6bc5..d19fa21fcefc946603a68e07266a4c0b06b2ba9d 100644 |
--- a/chrome/browser/ui/webui/options/startup_pages_handler.cc |
+++ b/chrome/browser/ui/webui/options/startup_pages_handler.cc |
@@ -6,6 +6,8 @@ |
#include <stddef.h> |
+#include <utility> |
+ |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
#include "base/logging.h" |
@@ -121,13 +123,13 @@ void StartupPagesHandler::OnModelChanged() { |
int page_count = startup_custom_pages_table_model_->RowCount(); |
std::vector<GURL> urls = startup_custom_pages_table_model_->GetURLs(); |
for (int i = 0; i < page_count; ++i) { |
- base::DictionaryValue* entry = new base::DictionaryValue(); |
+ std::unique_ptr<base::DictionaryValue> entry(new base::DictionaryValue()); |
entry->SetString("title", startup_custom_pages_table_model_->GetText(i, 0)); |
entry->SetString("url", urls[i].spec()); |
entry->SetString("tooltip", |
startup_custom_pages_table_model_->GetTooltip(i)); |
entry->SetInteger("modelIndex", i); |
- startup_pages.Append(entry); |
+ startup_pages.Append(std::move(entry)); |
} |
web_ui()->CallJavascriptFunctionUnsafe("StartupOverlay.updateStartupPages", |