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

Unified Diff: chromeos/tools/onc_validator/onc_validator.cc

Issue 925783002: Split ValueSerializer into separate Serializer and Deserializer classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed cpplint warnings. Created 5 years, 10 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 | « chromeos/network/onc/onc_test_utils.cc ('k') | components/bookmarks/browser/bookmark_codec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/tools/onc_validator/onc_validator.cc
diff --git a/chromeos/tools/onc_validator/onc_validator.cc b/chromeos/tools/onc_validator/onc_validator.cc
index d47597ebab631135cd093b13fc74633b38d6d5fb..84a92202c9c40ce8d6f4b435cb6556967de753f3 100644
--- a/chromeos/tools/onc_validator/onc_validator.cc
+++ b/chromeos/tools/onc_validator/onc_validator.cc
@@ -84,13 +84,13 @@ void PrintHelp() {
scoped_ptr<base::DictionaryValue> ReadDictionary(std::string filename) {
base::FilePath path(filename);
- JSONFileValueSerializer serializer(path);
- serializer.set_allow_trailing_comma(true);
+ JSONFileValueDeserializer deserializer(path);
+ deserializer.set_allow_trailing_comma(true);
base::DictionaryValue* dict = NULL;
std::string json_error;
- base::Value* value = serializer.Deserialize(NULL, &json_error);
+ base::Value* value = deserializer.Deserialize(NULL, &json_error);
if (!value) {
LOG(ERROR) << "Couldn't json-deserialize file '" << filename
<< "': " << json_error;
« no previous file with comments | « chromeos/network/onc/onc_test_utils.cc ('k') | components/bookmarks/browser/bookmark_codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698