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

Unified Diff: chrome/browser/font_family_cache.cc

Issue 2829163004: Remove uses of base::hash_map from //chrome (Closed)
Patch Set: Downloads back Created 3 years, 6 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/font_family_cache.cc
diff --git a/chrome/browser/font_family_cache.cc b/chrome/browser/font_family_cache.cc
index bf2359042baea3e7dc433d6ca66643cb9a89e1ab..94611c660e57206d16baba8f0f6d5eea1718f27a 100644
--- a/chrome/browser/font_family_cache.cc
+++ b/chrome/browser/font_family_cache.cc
@@ -91,17 +91,15 @@ base::string16 FontFamilyCache::FetchAndCacheFont(const char* script,
void FontFamilyCache::OnPrefsChanged(const std::string& pref_name) {
const size_t delimiter_length = 1;
const char delimiter = '.';
- for (FontFamilyMap::iterator it = font_family_map_.begin();
- it != font_family_map_.end();
- ++it) {
- const char* map_name = it->first;
+ for (auto& it : font_family_map_) {
+ const char* map_name = it.first;
size_t map_name_length = strlen(map_name);
// If the map name doesn't match, move on.
if (pref_name.compare(0, map_name_length, map_name) != 0)
continue;
- ScriptFontMap& map = it->second;
+ ScriptFontMap& map = it.second;
for (ScriptFontMap::iterator it2 = map.begin(); it2 != map.end(); ++it2) {
const char* script = it2->first;
size_t script_length = strlen(script);
« no previous file with comments | « chrome/browser/font_family_cache.h ('k') | chrome/browser/geolocation/geolocation_permission_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698