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

Unified Diff: chrome/browser/net/predictor.cc

Issue 2014103002: Remove deprecated ListValue::Append(Value*) overload on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ADL fail Created 4 years, 3 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/net/predictor.cc
diff --git a/chrome/browser/net/predictor.cc b/chrome/browser/net/predictor.cc
index 6e1891feba9f2c2aeb980a81e6f0dcf329b87279..ceb9e1b8bb4f0043b96956ebbedd77b163cfddeb 100644
--- a/chrome/browser/net/predictor.cc
+++ b/chrome/browser/net/predictor.cc
@@ -542,13 +542,10 @@ void Predictor::SerializeReferrers(base::ListValue* referral_list) {
referral_list->AppendInteger(kPredictorReferrerVersion);
for (Referrers::const_reverse_iterator it = referrers_.rbegin();
it != referrers_.rend(); ++it) {
- // Serialize the list of subresource names.
- base::Value* subresource_list(it->second.Serialize());
-
// Create a list for each referer.
std::unique_ptr<base::ListValue> motivator(new base::ListValue);
motivator->AppendString(it->first.spec());
- motivator->Append(subresource_list);
+ motivator->Append(it->second.Serialize());
referral_list->Append(std::move(motivator));
}
« no previous file with comments | « chrome/browser/media_galleries/media_galleries_preferences.cc ('k') | chrome/browser/net/predictor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698