From 88e7284573598db75013dbcbd9debb311b1e255c Mon Sep 17 00:00:00 2001 From: "aa@chromium.org" Date: Fri, 5 Dec 2008 22:14:46 +0000 Subject: Add error messages to JSONReader and friends. This required a bit of refactoring to do cleanly. This CL doesn't actually use this capability anywhere except for unit tests. I will add that in a future CL. Review URL: http://codereview.chromium.org/13169 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6459 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/page_state.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/page_state.cc') diff --git a/chrome/browser/page_state.cc b/chrome/browser/page_state.cc index e0c350f..f47a4cf 100644 --- a/chrome/browser/page_state.cc +++ b/chrome/browser/page_state.cc @@ -42,7 +42,7 @@ void PageState::InitWithBytes(const std::string& bytes) { JSONStringValueSerializer serializer(bytes); Value* root = NULL; - if (!serializer.Deserialize(&root)) + if (!serializer.Deserialize(&root, NULL)) NOTREACHED(); if (root != NULL && root->GetType() == Value::TYPE_DICTIONARY) { -- cgit v1.1