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

Unified Diff: chrome/browser/sync/profile_sync_service_preference_unittest.cc

Issue 9960077: Modify the base::JSONReader interface to take a set of options rather than a boolean flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 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/sync/profile_sync_service_preference_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_preference_unittest.cc b/chrome/browser/sync/profile_sync_service_preference_unittest.cc
index b22406aac7c97524a4715f3e10c9ebfb1a7b84a2..da17a86d9bb32187473afad24aafa9437b3c1eb7 100644
--- a/chrome/browser/sync/profile_sync_service_preference_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_preference_unittest.cc
@@ -164,8 +164,7 @@ class ProfileSyncServicePreferenceTest
const sync_pb::PreferenceSpecifics& specifics(
node.GetEntitySpecifics().preference());
- JSONReader reader;
- return reader.JsonToValue(specifics.value(), false, false);
+ return base::JSONReader::Read(specifics.value());
}
int64 WriteSyncedValue(const std::string& name,
@@ -255,8 +254,7 @@ TEST_F(ProfileSyncServicePreferenceTest, CreatePrefSyncData) {
preference());
EXPECT_EQ(std::string(prefs::kHomePage), specifics.name());
- base::JSONReader reader;
- scoped_ptr<Value> value(reader.JsonToValue(specifics.value(), false, false));
+ scoped_ptr<Value> value(base::JSONReader::Read(specifics.value()));
EXPECT_TRUE(pref->GetValue()->Equals(value.get()));
}

Powered by Google App Engine
This is Rietveld 408576698