Index: chrome/browser/history/expire_history_backend_unittest.cc |
=================================================================== |
--- chrome/browser/history/expire_history_backend_unittest.cc (revision 132411) |
+++ chrome/browser/history/expire_history_backend_unittest.cc (working copy) |
@@ -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 @@ |
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 { |