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

Unified Diff: rlz/chromeos/lib/rlz_value_store_chromeos.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 | « remoting/host/pairing_registry_delegate_win.cc ('k') | sync/internal_api/sync_encryption_handler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rlz/chromeos/lib/rlz_value_store_chromeos.cc
diff --git a/rlz/chromeos/lib/rlz_value_store_chromeos.cc b/rlz/chromeos/lib/rlz_value_store_chromeos.cc
index 2232b5a3e56b58ea455584d1ad567b784b99a550..45f2500e7a4795bf0b399f0945b0b79374e5414f 100644
--- a/rlz/chromeos/lib/rlz_value_store_chromeos.cc
+++ b/rlz/chromeos/lib/rlz_value_store_chromeos.cc
@@ -211,14 +211,14 @@ void RlzValueStoreChromeOS::CollectGarbage() {
void RlzValueStoreChromeOS::ReadStore() {
int error_code = 0;
std::string error_msg;
- JSONFileValueSerializer serializer(store_path_);
+ JSONFileValueDeserializer deserializer(store_path_);
scoped_ptr<base::Value> value(
- serializer.Deserialize(&error_code, &error_msg));
+ deserializer.Deserialize(&error_code, &error_msg));
switch (error_code) {
- case JSONFileValueSerializer::JSON_NO_SUCH_FILE:
+ case JSONFileValueDeserializer::JSON_NO_SUCH_FILE:
read_only_ = false;
break;
- case JSONFileValueSerializer::JSON_NO_ERROR:
+ case JSONFileValueDeserializer::JSON_NO_ERROR:
read_only_ = false;
rlz_store_.reset(static_cast<base::DictionaryValue*>(value.release()));
break;
« no previous file with comments | « remoting/host/pairing_registry_delegate_win.cc ('k') | sync/internal_api/sync_encryption_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698