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

Unified Diff: components/history/core/browser/web_history_service.cc

Issue 2889163002: Remove raw DictionaryValue::Set in //components (Closed)
Patch Set: Nits Created 3 years, 7 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
« no previous file with comments | « components/gcm_driver/gcm_internals_helper.cc ('k') | components/invalidation/impl/p2p_invalidator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/web_history_service.cc
diff --git a/components/history/core/browser/web_history_service.cc b/components/history/core/browser/web_history_service.cc
index 0ce75efc45b069c8244da35a5abe6e5c3d4cbe4b..2a8a8f10365e9acf2933c355f223cd3a52c9ec49 100644
--- a/components/history/core/browser/web_history_service.cc
+++ b/components/history/core/browser/web_history_service.cc
@@ -5,6 +5,7 @@
#include "components/history/core/browser/web_history_service.h"
#include <memory>
+#include <utility>
#include "base/bind.h"
#include "base/command_line.h"
@@ -414,7 +415,7 @@ void WebHistoryService::ExpireHistory(
if (expire.urls.empty())
deletions->Append(CreateDeletion(min_timestamp, max_timestamp, GURL()));
}
- delete_request.Set("del", deletions.release());
+ delete_request.Set("del", std::move(deletions));
std::string post_data;
base::JSONWriter::Write(delete_request, &post_data);
« no previous file with comments | « components/gcm_driver/gcm_internals_helper.cc ('k') | components/invalidation/impl/p2p_invalidator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698