Index: chrome/test/chromedriver/logging.cc |
diff --git a/chrome/test/chromedriver/logging.cc b/chrome/test/chromedriver/logging.cc |
index eacb53fa094fa6c968b30c340c4bced8075be3f7..101d47e9e1c14dea377125252970cbec8354b878 100644 |
--- a/chrome/test/chromedriver/logging.cc |
+++ b/chrome/test/chromedriver/logging.cc |
@@ -170,8 +170,8 @@ bool GetFirstErrorMessageFromList(const base::ListValue* list, |
for (base::ListValue::const_iterator it = list->begin(); |
it != list->end(); |
++it) { |
- base::DictionaryValue* log_entry = NULL; |
- (*it)->GetAsDictionary(&log_entry); |
+ const base::DictionaryValue* log_entry = NULL; |
+ it->GetAsDictionary(&log_entry); |
if (log_entry != NULL) { |
std::string level; |
if (log_entry->GetString("level", &level)) |