summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/expire_history_backend_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/history/expire_history_backend_unittest.cc')
-rw-r--r--chrome/browser/history/expire_history_backend_unittest.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/history/expire_history_backend_unittest.cc b/chrome/browser/history/expire_history_backend_unittest.cc
index 691681f..ab2d570 100644
--- a/chrome/browser/history/expire_history_backend_unittest.cc
+++ b/chrome/browser/history/expire_history_backend_unittest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <algorithm>
#include <string>
#include <utility>
@@ -381,10 +382,10 @@ void ExpireHistoryTest::EnsureURLInfoGone(const URLRow& row) {
bool found_delete_notification = false;
for (size_t i = 0; i < notifications_.size(); i++) {
if (notifications_[i].first == chrome::NOTIFICATION_HISTORY_URLS_DELETED) {
- const URLsDeletedDetails* deleted_details =
- reinterpret_cast<URLsDeletedDetails*>(notifications_[i].second);
- if (deleted_details->urls.find(row.url()) !=
- deleted_details->urls.end()) {
+ const history::URLRows& rows(reinterpret_cast<URLsDeletedDetails*>(
+ notifications_[i].second)->rows);
+ if (std::find_if(rows.begin(), rows.end(),
+ history::URLRow::URLRowHasURL(row.url())) != rows.end()) {
found_delete_notification = true;
}
} else {