summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger/debugger_host_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/debugger/debugger_host_impl.cpp')
-rw-r--r--chrome/browser/debugger/debugger_host_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/debugger/debugger_host_impl.cpp b/chrome/browser/debugger/debugger_host_impl.cpp
index c2eb41d..32c13fd 100644
--- a/chrome/browser/debugger/debugger_host_impl.cpp
+++ b/chrome/browser/debugger/debugger_host_impl.cpp
@@ -83,8 +83,8 @@ void DebuggerHostImpl::Debug(TabContents* tab) {
void DebuggerHostImpl::DebugMessage(const std::wstring& msg) {
- Value* msg_value = NULL;
- if (!JSONReader::Read(WideToUTF8(msg), &msg_value, false)) {
+ Value* msg_value = JSONReader::Read(WideToUTF8(msg), false);
+ if (!msg_value) {
msg_value = Value::CreateStringValue(L"Message parse error!");
}
ListValue* argv = new ListValue;