Index: base/test/trace_event_analyzer.cc |
diff --git a/base/test/trace_event_analyzer.cc b/base/test/trace_event_analyzer.cc |
index c0d9fae4be6ed04ad93b2c57601ee6ae73929834..ad507252749579784f0b07407d0c70eb905d3a16 100644 |
--- a/base/test/trace_event_analyzer.cc |
+++ b/base/test/trace_event_analyzer.cc |
@@ -35,7 +35,7 @@ bool TraceEvent::SetFromJSON(const base::Value* event_value) { |
static_cast<const base::DictionaryValue*>(event_value); |
std::string phase_str; |
- base::DictionaryValue* args = NULL; |
+ const base::DictionaryValue* args = NULL; |
if (!dictionary->GetString("ph", &phase_str)) { |
LOG(ERROR) << "ph is missing from TraceEvent JSON"; |
@@ -85,7 +85,7 @@ bool TraceEvent::SetFromJSON(const base::Value* event_value) { |
bool boolean = false; |
int int_num = 0; |
double double_num = 0.0; |
- Value* value = NULL; |
+ const Value* value = NULL; |
if (args->GetWithoutPathExpansion(*keyi, &value)) { |
if (value->GetAsString(&str)) |
arg_strings[*keyi] = str; |
@@ -957,4 +957,3 @@ size_t CountMatches(const TraceEventVector& events, |
} |
} // namespace trace_analyzer |
- |