summaryrefslogtreecommitdiff
path: root/src/activity_replay.cc
diff options
context:
space:
mode:
authorChris Masone <cmasone@chromium.org>2013-02-14 16:51:04 -0800
committerChromeBot <chrome-bot@google.com>2013-02-15 09:18:07 -0800
commitb1458ce1d407003e2a418d6a1514fd307f65fe27 (patch)
tree615a35daed53d55ccbef228273f0df164b059ab1 /src/activity_replay.cc
parent976b35554909874c61b0621718c28cc7e0219498 (diff)
downloadlibchrome-gestures-b1458ce1d407003e2a418d6a1514fd307f65fe27.tar.gz
Update gestures to build against libchrome-180609
The interface to JSONWriter::Write() changed, so to get pretty-printed JSON we had to change to WriteWithOptions() in some places. Also, FilePath is in the base:: namespace now. CQ-DEPEND=If8868bd339480f044263c02f59126d335318ab7a BUG=chromium-os:38938 TEST=FEATURE=test emerge-x86-mario gestures STATUS=Fixed Change-Id: I6b193cf098e3bfa9b109e457a4a04f843357aecf Reviewed-on: https://gerrit.chromium.org/gerrit/43363 Commit-Queue: Chris Masone <cmasone@chromium.org> Tested-by: Chris Masone <cmasone@chromium.org> Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Diffstat (limited to 'src/activity_replay.cc')
-rw-r--r--src/activity_replay.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/activity_replay.cc b/src/activity_replay.cc
index 40bc679..78b00f6 100644
--- a/src/activity_replay.cc
+++ b/src/activity_replay.cc
@@ -283,7 +283,9 @@ bool ActivityReplay::ParseFingerState(DictionaryValue* entry,
if (!entry->GetInteger(ActivityLog::kKeyFingerStateTrackingId, &tr_id)) {
Err("can't parse finger's tracking id");
string json;
- base::JSONWriter::Write(entry, true, &json);
+ base::JSONWriter::WriteWithOptions(entry,
+ base::JSONWriter::OPTIONS_PRETTY_PRINT,
+ &json);
Err("fs: %s", json.c_str());
return false;
}