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

Unified Diff: chrome/browser/net/predictor_unittest.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
« no previous file with comments | « chrome/browser/net/predictor.cc ('k') | chrome/browser/net/referrer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/predictor_unittest.cc
diff --git a/chrome/browser/net/predictor_unittest.cc b/chrome/browser/net/predictor_unittest.cc
index 02131208bb61ce756e8b61dad45b29fed238ae42..9b947c0b02e020f9eb980862a5513558d3b7e554 100644
--- a/chrome/browser/net/predictor_unittest.cc
+++ b/chrome/browser/net/predictor_unittest.cc
@@ -13,6 +13,7 @@
#include "base/location.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
@@ -101,10 +102,10 @@ static void AddToSerializedList(const GURL& motivation,
motivation_list = new base::ListValue;
motivation_list->AppendString(motivation.spec());
// Provide empty subresource list.
- motivation_list->Append(new base::ListValue());
+ motivation_list->Append(base::MakeUnique<base::ListValue>());
// ...and make it part of the serialized referral_list.
- referral_list->Append(motivation_list);
+ referral_list->Append(base::WrapUnique(motivation_list));
}
base::ListValue* subresource_list(NULL);
« no previous file with comments | « chrome/browser/net/predictor.cc ('k') | chrome/browser/net/referrer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698