Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / sync / js / js_event_details.cc
blob0517b39bb9fafb47d8336a999b997dd2355e0eaf
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "sync/js/js_event_details.h"
7 #include "base/json/json_writer.h"
9 namespace syncer {
11 JsEventDetails::JsEventDetails() {}
13 JsEventDetails::JsEventDetails(base::DictionaryValue* details)
14 : details_(details) {}
16 JsEventDetails::~JsEventDetails() {}
18 const base::DictionaryValue& JsEventDetails::Get() const {
19 return details_.Get();
22 std::string JsEventDetails::ToString() const {
23 std::string str;
24 base::JSONWriter::Write(&Get(), &str);
25 return str;
28 } // namespace syncer