Index: base/trace_event/trace_event_argument.cc |
diff --git a/base/trace_event/trace_event_argument.cc b/base/trace_event/trace_event_argument.cc |
index 91ed9e85a23a0c026f7b1510b9e42c86b70257b2..88b1879b8b3757071727d4a94103e8d10f304d05 100644 |
--- a/base/trace_event/trace_event_argument.cc |
+++ b/base/trace_event/trace_event_argument.cc |
@@ -34,19 +34,19 @@ void TracedValue::SetString(const char* name, const std::string& value) { |
GetCurrentDictionary()->SetString(name, value); |
} |
-void TracedValue::SetValue(const char* name, Value* value) { |
- GetCurrentDictionary()->Set(name, value); |
+void TracedValue::SetValue(const char* name, scoped_ptr<Value> value) { |
+ GetCurrentDictionary()->Set(name, value.Pass()); |
} |
void TracedValue::BeginDictionary(const char* name) { |
DictionaryValue* dictionary = new DictionaryValue(); |
- GetCurrentDictionary()->Set(name, dictionary); |
+ GetCurrentDictionary()->Set(name, make_scoped_ptr(dictionary)); |
stack_.push_back(dictionary); |
} |
void TracedValue::BeginArray(const char* name) { |
ListValue* array = new ListValue(); |
- GetCurrentDictionary()->Set(name, array); |
+ GetCurrentDictionary()->Set(name, make_scoped_ptr(array)); |
stack_.push_back(array); |
} |