| 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 87b3e8d3a90db96a37f5c5243d99b03c70f6fe77..046516dc3d9d394760e4ae1f529e8689b43ab747 100644
|
| --- a/chrome/browser/ui/webui/browsing_history_handler.cc
|
| +++ b/chrome/browser/ui/webui/browsing_history_handler.cc
|
| @@ -364,14 +364,13 @@ void BrowsingHistoryHandler::HandleRemoveVisits(const base::ListValue* args) {
|
| items_to_remove.reserve(args->GetSize());
|
| for (base::ListValue::const_iterator it = args->begin();
|
| it != args->end(); ++it) {
|
| - base::DictionaryValue* deletion = NULL;
|
| + const base::DictionaryValue* deletion = NULL;
|
| base::string16 url;
|
| - base::ListValue* timestamps = NULL;
|
| + const 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;
|
| }
|
| @@ -384,7 +383,7 @@ void BrowsingHistoryHandler::HandleRemoveVisits(const base::ListValue* args) {
|
| 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;
|
| }
|
|
|