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

Unified Diff: components/bookmarks/browser/bookmark_storage.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
Index: components/bookmarks/browser/bookmark_storage.cc
diff --git a/components/bookmarks/browser/bookmark_storage.cc b/components/bookmarks/browser/bookmark_storage.cc
index b377069b663bac60f96f11852589af005e9e0434..daafdbea09378a185baf8bc13b0277eba9afd290 100644
--- a/components/bookmarks/browser/bookmark_storage.cc
+++ b/components/bookmarks/browser/bookmark_storage.cc
@@ -56,8 +56,8 @@ void LoadCallback(const base::FilePath& path,
bool load_index = false;
bool bookmark_file_exists = base::PathExists(path);
if (bookmark_file_exists) {
- JSONFileValueSerializer serializer(path);
- scoped_ptr<base::Value> root(serializer.Deserialize(NULL, NULL));
+ JSONFileValueDeserializer deserializer(path);
+ scoped_ptr<base::Value> root(deserializer.Deserialize(NULL, NULL));
if (root.get()) {
// Building the index can take a while, so we do it on the background
« no previous file with comments | « components/bookmarks/browser/bookmark_codec_unittest.cc ('k') | components/json_schema/json_schema_validator_unittest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698