| Index: base/debug/traced_value.cc
|
| diff --git a/cc/debug/traced_value.cc b/base/debug/traced_value.cc
|
| similarity index 80%
|
| rename from cc/debug/traced_value.cc
|
| rename to base/debug/traced_value.cc
|
| index 3b506ae7e370aa8153f4ac566cb7dfd1fd1c9ca9..4ce3706df619f8cbead9e72df0914b227a29a6e5 100644
|
| --- a/cc/debug/traced_value.cc
|
| +++ b/base/debug/traced_value.cc
|
| @@ -2,13 +2,14 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "cc/debug/traced_value.h"
|
| +#include "base/debug/traced_value.h"
|
|
|
| #include "base/json/json_writer.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/values.h"
|
|
|
| -namespace cc {
|
| +namespace base {
|
| +namespace debug {
|
|
|
| scoped_ptr<base::Value> TracedValue::CreateIDRef(const void* id) {
|
| scoped_ptr<base::DictionaryValue> res(new base::DictionaryValue());
|
| @@ -16,8 +17,9 @@ scoped_ptr<base::Value> TracedValue::CreateIDRef(const void* id) {
|
| return res.PassAs<base::Value>();
|
| }
|
|
|
| -void TracedValue::MakeDictIntoImplicitSnapshot(
|
| - base::DictionaryValue* dict, const char* object_name, const void* id) {
|
| +void TracedValue::MakeDictIntoImplicitSnapshot(base::DictionaryValue* dict,
|
| + const char* object_name,
|
| + const void* id) {
|
| dict->SetString("id", base::StringPrintf("%s/%p", object_name, id));
|
| }
|
|
|
| @@ -47,8 +49,7 @@ scoped_refptr<base::debug::ConvertableToTraceFormat> TracedValue::FromValue(
|
| new TracedValue(value));
|
| }
|
|
|
| -TracedValue::TracedValue(base::Value* value)
|
| - : value_(value) {
|
| +TracedValue::TracedValue(base::Value* value) : value_(value) {
|
| }
|
|
|
| TracedValue::~TracedValue() {
|
| @@ -60,4 +61,5 @@ void TracedValue::AppendAsTraceFormat(std::string* out) const {
|
| *out += tmp;
|
| }
|
|
|
| -} // namespace cc
|
| +} // namespace debug
|
| +} // namespace base
|
|
|