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

Unified Diff: chrome/browser/search_engines/search_host_to_urls_map.cc

Issue 10033017: More misc. cleanups to minimize future refactoring diffs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/search_engines/search_host_to_urls_map.cc
===================================================================
--- chrome/browser/search_engines/search_host_to_urls_map.cc (revision 131375)
+++ chrome/browser/search_engines/search_host_to_urls_map.cc (working copy)
@@ -65,16 +65,13 @@
// Create a list of the the TemplateURLs to update.
std::vector<const TemplateURL*> t_urls_using_base_url;
- for (HostToURLsMap::iterator host_map_iterator = host_to_urls_map_.begin();
- host_map_iterator != host_to_urls_map_.end(); ++host_map_iterator) {
- const TemplateURLSet& urls = host_map_iterator->second;
- for (TemplateURLSet::const_iterator url_set_iterator = urls.begin();
- url_set_iterator != urls.end(); ++url_set_iterator) {
- const TemplateURL* t_url = *url_set_iterator;
- if (t_url->url_ref().HasGoogleBaseURLs() ||
- t_url->suggestions_url_ref().HasGoogleBaseURLs()) {
- t_urls_using_base_url.push_back(t_url);
- }
+ for (HostToURLsMap::iterator i(host_to_urls_map_.begin());
+ i != host_to_urls_map_.end(); ++i) {
+ for (TemplateURLSet::const_iterator j(i->second.begin());
+ j != i->second.end(); ++j) {
+ if ((*j)->url_ref().HasGoogleBaseURLs() ||
+ (*j)->suggestions_url_ref().HasGoogleBaseURLs())
+ t_urls_using_base_url.push_back(*j);
}
}

Powered by Google App Engine
This is Rietveld 408576698