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.
4
5#include "sync/js/js_event_details.h"
6
7#include "base/json/json_writer.h"
8
9namespace syncer {
10
11JsEventDetails::JsEventDetails() {}
12
13JsEventDetails::JsEventDetails(base::DictionaryValue* details)
14    : details_(details) {}
15
16JsEventDetails::~JsEventDetails() {}
17
18const base::DictionaryValue& JsEventDetails::Get() const {
19  return details_.Get();
20}
21
22std::string JsEventDetails::ToString() const {
23  std::string str;
24  base::JSONWriter::Write(&Get(), &str);
25  return str;
26}
27
28}  // namespace syncer
29