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

Unified Diff: chrome/browser/ui/webui/nacl_ui.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: chrome/browser/ui/webui/nacl_ui.cc
diff --git a/chrome/browser/ui/webui/nacl_ui.cc b/chrome/browser/ui/webui/nacl_ui.cc
index d844a40cf7c817ffa53cf8e99fe0727de4768c50..26482c7a83c5fd4b35db212e83c05b99be30b1d0 100644
--- a/chrome/browser/ui/webui/nacl_ui.cc
+++ b/chrome/browser/ui/webui/nacl_ui.cc
@@ -328,9 +328,9 @@ void NaClDomHandler::DidCheckPathAndVersion(const std::string* version,
void CheckVersion(const base::FilePath& pnacl_path, std::string* version) {
base::FilePath pnacl_json_path =
pnacl_path.AppendASCII("pnacl_public_pnacl_json");
- JSONFileValueSerializer serializer(pnacl_json_path);
+ JSONFileValueDeserializer deserializer(pnacl_json_path);
std::string error;
- scoped_ptr<base::Value> root(serializer.Deserialize(NULL, &error));
+ scoped_ptr<base::Value> root(deserializer.Deserialize(NULL, &error));
if (!root || !root->IsType(base::Value::TYPE_DICTIONARY))
return;

Powered by Google App Engine
This is Rietveld 408576698