Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Unified Diff: base/trace_event/trace_event_argument.cc

Issue 1141793003: Update from https://crrev.com/329939 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/trace_event/trace_event_argument.h ('k') | base/trace_event/trace_event_etw_export_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « base/trace_event/trace_event_argument.h ('k') | base/trace_event/trace_event_etw_export_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698