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

Unified Diff: chrome/browser/supervised_user/supervised_user_url_filter.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
Index: chrome/browser/supervised_user/supervised_user_url_filter.cc
diff --git a/chrome/browser/supervised_user/supervised_user_url_filter.cc b/chrome/browser/supervised_user/supervised_user_url_filter.cc
index d85a5dfbf2be65da0f39f8c3b54e26e010c017e5..26d68c2798391dfac90bb714a9596033cf160c5a 100644
--- a/chrome/browser/supervised_user/supervised_user_url_filter.cc
+++ b/chrome/browser/supervised_user/supervised_user_url_filter.cc
@@ -315,7 +315,7 @@ SupervisedUserURLFilter::GetFilteringBehaviorForURL(
// Look for patterns matching the hostname, with a value that is different
// from the default (a value of true in the map meaning allowed).
- for (const std::pair<std::string, bool>& host_entry : host_map_) {
+ for (const auto& host_entry : host_map_) {
if ((host_entry.second == (default_behavior_ == BLOCK)) &&
HostMatchesPattern(host, host_entry.first)) {
return host_entry.second ? ALLOW : BLOCK;

Powered by Google App Engine
This is Rietveld 408576698