summaryrefslogtreecommitdiffstats
path: root/base/test/trace_event_analyzer.cc
diff options
context:
space:
mode:
authorvabr@chromium.org <vabr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-27 22:27:11 +0000
committervabr@chromium.org <vabr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-27 22:27:11 +0000
commita61890ebc4d1d6f558edfe8a03ba6a6c72a16689 (patch)
treedc8768892744a98ba9386583a1d27fa575e72a15 /base/test/trace_event_analyzer.cc
parentb39a8db3e8e31029e98075863a38f8c3b188529c (diff)
downloadchromium_src-a61890ebc4d1d6f558edfe8a03ba6a6c72a16689.zip
chromium_src-a61890ebc4d1d6f558edfe8a03ba6a6c72a16689.tar.gz
chromium_src-a61890ebc4d1d6f558edfe8a03ba6a6c72a16689.tar.bz2
Correct const accessors in base/values.(h|cc)
For problem description and other info please see the BUG page. This is for DictionaryValue. BUG=138946 TEST=N/A (no fix & no new feature) TBR=jar scottbyer achuith agl mnissler davemoore garykac akalin hans bulach phajdan.jr jamesr Review URL: https://chromiumcodereview.appspot.com/10834004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148833 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/test/trace_event_analyzer.cc')
-rw-r--r--base/test/trace_event_analyzer.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/base/test/trace_event_analyzer.cc b/base/test/trace_event_analyzer.cc
index c0d9fae..ad50725 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
-