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

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

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 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_api.cc ('k') | chrome/browser/net/referrer.cc » ('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 58aab262c79eb192c8f2b2bf34e28d726568e1df..f44178d68832802cf4d026bf16d8681d65c7d98c 100644
--- a/chrome/browser/net/predictor_unittest.cc
+++ b/chrome/browser/net/predictor_unittest.cc
@@ -283,8 +283,7 @@ static ListValue* FindSerializationMotivation(
// Create a new empty serialization list.
static ListValue* NewEmptySerializationList() {
base::ListValue* list = new base::ListValue;
- list->Append(
- new base::FundamentalValue(Predictor::PREDICTOR_REFERRER_VERSION));
+ list->Append(base::NumberValue::New(Predictor::PREDICTOR_REFERRER_VERSION));
return list;
}
@@ -301,7 +300,7 @@ static void AddToSerializedList(const GURL& motivation,
if (!motivation_list) {
// This is the first mention of this motivation, so build a list.
motivation_list = new ListValue;
- motivation_list->Append(new StringValue(motivation.spec()));
+ motivation_list->Append(base::StringValue::New(motivation.spec()));
// Provide empty subresource list.
motivation_list->Append(new ListValue());
@@ -318,7 +317,7 @@ static void AddToSerializedList(const GURL& motivation,
// existing value(s) will be added to the referrer.
subresource_list->Append(new base::StringValue(subresource.spec()));
- subresource_list->Append(new base::FundamentalValue(use_rate));
+ subresource_list->Append(base::NumberValue::New(use_rate));
}
static const int kLatencyNotFound = -1;
« no previous file with comments | « chrome/browser/net/predictor_api.cc ('k') | chrome/browser/net/referrer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698