Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: chrome/browser/history/expire_history_backend_unittest.cc

Issue 853533002: Use proper pair type in range-based for map iterations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: supervised_user auto Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/supervised_user/supervised_user_url_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/expire_history_backend_unittest.cc
diff --git a/chrome/browser/history/expire_history_backend_unittest.cc b/chrome/browser/history/expire_history_backend_unittest.cc
index 2a3c8e09555c052243b49af8207ea04a027e810b..02fce40266d4affc01484e1086ccaf3b3721c423 100644
--- a/chrome/browser/history/expire_history_backend_unittest.cc
+++ b/chrome/browser/history/expire_history_backend_unittest.cc
@@ -333,7 +333,8 @@ void ExpireHistoryTest::EnsureURLInfoGone(const URLRow& row, bool expired) {
// EXPECT_FALSE(HasThumbnail(row.id()));
bool found_delete_notification = false;
- for (const std::pair<bool, URLRows>& pair : urls_deleted_notifications_) {
+ for (const URLsDeletedNotificationList::value_type& pair :
sdefresne 2015/01/14 10:47:08 nit: I slightly prefer const auto& here.
vmpstr 2015/01/14 17:32:16 Done.
+ urls_deleted_notifications_) {
EXPECT_EQ(expired, pair.first);
const history::URLRows& rows(pair.second);
history::URLRows::const_iterator it_row = std::find_if(
« no previous file with comments | « no previous file | chrome/browser/supervised_user/supervised_user_url_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698