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

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

Issue 2812953002: Stop passing raw pointers to base::Value API in c/b/ui (Closed)
Patch Set: 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/browsing_history_handler.cc
diff --git a/chrome/browser/ui/webui/browsing_history_handler.cc b/chrome/browser/ui/webui/browsing_history_handler.cc
index 87b3e8d3a90db96a37f5c5243d99b03c70f6fe77..067ae1efb420701c3ef753d7a746d5a90a110d7c 100644
--- a/chrome/browser/ui/webui/browsing_history_handler.cc
+++ b/chrome/browser/ui/webui/browsing_history_handler.cc
@@ -194,7 +194,7 @@ std::unique_ptr<base::DictionaryValue> HistoryEntryToValue(
it != entry->all_timestamps.end(); ++it) {
timestamps->AppendDouble(base::Time::FromInternalValue(*it).ToJsTime());
}
- result->Set("allTimestamps", timestamps.release());
+ result->Set("allTimestamps", std::move(timestamps));
// Always pass the short date since it is needed both in the search and in
// the monthly view.

Powered by Google App Engine
This is Rietveld 408576698