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

Unified Diff: remoting/host/pairing_registry_delegate_win.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_linux.cc ('k') | rlz/chromeos/lib/rlz_value_store_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/pairing_registry_delegate_win.cc
diff --git a/remoting/host/pairing_registry_delegate_win.cc b/remoting/host/pairing_registry_delegate_win.cc
index 1beac2f566cd4a607446aab36a4a2801ed2e27c7..a714e31c38432388ce74c846f9a2d71dd45404cd 100644
--- a/remoting/host/pairing_registry_delegate_win.cc
+++ b/remoting/host/pairing_registry_delegate_win.cc
@@ -49,10 +49,10 @@ scoped_ptr<base::DictionaryValue> ReadValue(const base::win::RegKey& key,
// Parse the value.
std::string value_json_utf8 = base::WideToUTF8(value_json);
- JSONStringValueSerializer serializer(&value_json_utf8);
+ JSONStringValueDeserializer deserializer(value_json_utf8);
int error_code;
std::string error_message;
- scoped_ptr<base::Value> value(serializer.Deserialize(&error_code,
+ scoped_ptr<base::Value> value(deserializer.Deserialize(&error_code,
&error_message));
if (!value) {
LOG(ERROR) << "Failed to parse '" << value_name << "': " << error_message
« no previous file with comments | « remoting/host/pairing_registry_delegate_linux.cc ('k') | rlz/chromeos/lib/rlz_value_store_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698