summaryrefslogtreecommitdiffstats
path: root/rlz
diff options
context:
space:
mode:
authorprashhir <prashhir@cisco.com>2015-03-05 01:30:57 -0800
committerCommit bot <commit-bot@chromium.org>2015-03-05 09:31:42 +0000
commit54a99450c633d64842217b10fa6841b2a3e7eb77 (patch)
tree743fdd828070286b7fb0223d140e4ded87954b13 /rlz
parent60cab6b4116a9c297795d6e32dc30c28f67a959e (diff)
downloadchromium_src-54a99450c633d64842217b10fa6841b2a3e7eb77.zip
chromium_src-54a99450c633d64842217b10fa6841b2a3e7eb77.tar.gz
chromium_src-54a99450c633d64842217b10fa6841b2a3e7eb77.tar.bz2
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}
Diffstat (limited to 'rlz')
-rw-r--r--rlz/chromeos/lib/rlz_value_store_chromeos.cc8
1 files changed, 4 insertions, 4 deletions
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<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;