Index: chrome/browser/ui/webui/browsing_history_handler.cc |
diff --git a/chrome/browser/ui/webui/browsing_history_handler.cc b/chrome/browser/ui/webui/browsing_history_handler.cc |
index 046516dc3d9d394760e4ae1f529e8689b43ab747..87b3e8d3a90db96a37f5c5243d99b03c70f6fe77 100644 |
--- a/chrome/browser/ui/webui/browsing_history_handler.cc |
+++ b/chrome/browser/ui/webui/browsing_history_handler.cc |
@@ -364,13 +364,14 @@ |
items_to_remove.reserve(args->GetSize()); |
for (base::ListValue::const_iterator it = args->begin(); |
it != args->end(); ++it) { |
- const base::DictionaryValue* deletion = NULL; |
+ base::DictionaryValue* deletion = NULL; |
base::string16 url; |
- const base::ListValue* timestamps = NULL; |
+ base::ListValue* timestamps = NULL; |
// Each argument is a dictionary with properties "url" and "timestamps". |
- if (!(it->GetAsDictionary(&deletion) && deletion->GetString("url", &url) && |
- deletion->GetList("timestamps", ×tamps))) { |
+ if (!((*it)->GetAsDictionary(&deletion) && |
+ deletion->GetString("url", &url) && |
+ deletion->GetList("timestamps", ×tamps))) { |
NOTREACHED() << "Unable to extract arguments"; |
return; |
} |
@@ -383,7 +384,7 @@ |
double timestamp; |
for (base::ListValue::const_iterator ts_iterator = timestamps->begin(); |
ts_iterator != timestamps->end(); ++ts_iterator) { |
- if (!ts_iterator->GetAsDouble(×tamp)) { |
+ if (!(*ts_iterator)->GetAsDouble(×tamp)) { |
NOTREACHED() << "Unable to extract visit timestamp."; |
continue; |
} |