diff options
author | ericdingle@chromium.org <ericdingle@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-16 01:59:55 +0000 |
---|---|---|
committer | ericdingle@chromium.org <ericdingle@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-16 01:59:55 +0000 |
commit | 4abb460a3df397934469f342ccf49191092597d3 (patch) | |
tree | bfdb8087aaaaf3207cd2c2ca98c8877dafd1db5c /gpu | |
parent | f76bc0fba725dbade1f6d89b4c6564e62498933b (diff) | |
download | chromium_src-4abb460a3df397934469f342ccf49191092597d3.zip chromium_src-4abb460a3df397934469f342ccf49191092597d3.tar.gz chromium_src-4abb460a3df397934469f342ccf49191092597d3.tar.bz2 |
JSONWriter cleanup: integrate pretty print into write options.
BUG=
TEST=base_unittests
TBR=abodenha@chromium.org,ajwong@chromium.org,chocobo@chromium.org,mnissler@chromium.org,akalin@chromium.org,brettw@chromium.org,arv@chromium.org
Review URL: http://codereview.chromium.org/9590002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127080 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/tools/compositor_model_bench/render_tree.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gpu/tools/compositor_model_bench/render_tree.cc b/gpu/tools/compositor_model_bench/render_tree.cc index 5aecf33..9e14ca2 100644 --- a/gpu/tools/compositor_model_bench/render_tree.cc +++ b/gpu/tools/compositor_model_bench/render_tree.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -441,7 +441,8 @@ RenderNode* InterpretNode(DictionaryValue* node) { string outjson; - JSONWriter::Write(node, true, &outjson); + JSONWriter::WriteWithOptions(node, base::JSONWriter::OPTIONS_PRETTY_PRINT, + &outjson); LOG(ERROR) << "Unrecognized node type! JSON:\n\n" "-----------------------\n" << outjson << |