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

Unified Diff: chrome/browser/content_settings/local_shared_objects_container.cc

Issue 2318303002: Remove stl_util's STLDeleteContainerPairSecondPointers. (Closed)
Patch Set: fix Created 4 years, 3 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/content_settings/local_shared_objects_container.cc
diff --git a/chrome/browser/content_settings/local_shared_objects_container.cc b/chrome/browser/content_settings/local_shared_objects_container.cc
index 2115b649e437760dad130e31b556a2e5bb2e4131..9fe7f73e15f1c4a3819f1eab907c60e6b107404a 100644
--- a/chrome/browser/content_settings/local_shared_objects_container.cc
+++ b/chrome/browser/content_settings/local_shared_objects_container.cc
@@ -86,10 +86,8 @@ size_t LocalSharedObjectsContainer::GetObjectCountForDomain(
for (OriginCookieSetMap::const_iterator it = origin_cookies_set_map.begin();
it != origin_cookies_set_map.end();
++it) {
- const canonical_cookie::CookieHashSet* cookie_list = it->second;
- for (canonical_cookie::CookieHashSet::const_iterator cookie =
- cookie_list->begin();
- cookie != cookie_list->end();
+ const canonical_cookie::CookieHashSet* cookie_list = it->second.get();
+ for (auto cookie = cookie_list->begin(); cookie != cookie_list->end();
Nico 2016/09/22 15:56:11 can this one be for-each?
Avi (use Gerrit) 2016/09/22 19:17:17 Done.
++cookie) {
// Strip leading '.'s.
std::string cookie_domain = cookie->Domain();

Powered by Google App Engine
This is Rietveld 408576698