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

Unified Diff: chrome/browser/drive/fake_drive_service.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/drive/fake_drive_service.cc
diff --git a/chrome/browser/drive/fake_drive_service.cc b/chrome/browser/drive/fake_drive_service.cc
index f34c0d62684a84a5a25b10e86618374e8f8a30c1..7f9b585b9f309ec8bda151115ce10ca342599c10 100644
--- a/chrome/browser/drive/fake_drive_service.cc
+++ b/chrome/browser/drive/fake_drive_service.cc
@@ -280,7 +280,7 @@ void FakeDriveService::AddApp(const std::string& app_id,
ReplaceSubstringsAfterOffset(
&app_json, 0, "$Removable", is_removable ? "true" : "false");
- JSONStringValueSerializer json(app_json);
+ JSONStringValueDeserializer json(app_json);
std::string error_message;
scoped_ptr<base::Value> value(json.Deserialize(NULL, &error_message));
CHECK_EQ(base::Value::TYPE_DICTIONARY, value->GetType());

Powered by Google App Engine
This is Rietveld 408576698