From 54a99450c633d64842217b10fa6841b2a3e7eb77 Mon Sep 17 00:00:00 2001 From: prashhir Date: Thu, 5 Mar 2015 01:30:57 -0800 Subject: Split ValueSerializer into separate Serializer and Deserializer classes. This CL removes the Deserializer functionality from ValueSerializer, and puts into separate class ValueDeserializer, so that class responsibility is maintained. BUG=455453 TBR=brettw@chromium.org Review URL: https://codereview.chromium.org/925783002 Cr-Commit-Position: refs/heads/master@{#319239} --- rlz/chromeos/lib/rlz_value_store_chromeos.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rlz') diff --git a/rlz/chromeos/lib/rlz_value_store_chromeos.cc b/rlz/chromeos/lib/rlz_value_store_chromeos.cc index 2232b5a..45f2500 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 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(value.release())); break; -- cgit v1.1