Index: chrome/browser/ui/webui/options/clear_browser_data_handler.cc |
diff --git a/chrome/browser/ui/webui/options/clear_browser_data_handler.cc b/chrome/browser/ui/webui/options/clear_browser_data_handler.cc |
index fb1914e444c150b25cbcb614bfa9fa0bcc13514c..527531ccb060338e0ac4dbaae42f8c1460d0d66a 100644 |
--- a/chrome/browser/ui/webui/options/clear_browser_data_handler.cc |
+++ b/chrome/browser/ui/webui/options/clear_browser_data_handler.cc |
@@ -199,7 +199,7 @@ void ClearBrowserDataHandler::GetLocalizedValues( |
IDS_CLEAR_BROWSING_DATA_HISTORY_NOTICE, |
base::ASCIIToUTF16(kMyActivityUrlInDialog))); |
- base::ListValue* time_list = new base::ListValue; |
+ auto time_list = base::MakeUnique<base::ListValue>(); |
for (int i = 0; i < 5; i++) { |
base::string16 label_string; |
switch (i) { |
@@ -224,7 +224,7 @@ void ClearBrowserDataHandler::GetLocalizedValues( |
option->AppendString(label_string); |
time_list->Append(std::move(option)); |
} |
- localized_strings->Set("clearBrowserDataTimeList", time_list); |
+ localized_strings->Set("clearBrowserDataTimeList", std::move(time_list)); |
localized_strings->SetBoolean("showDeleteBrowsingHistoryCheckboxes", |
!Profile::FromWebUI(web_ui())->IsSupervised()); |
} |