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

Unified Diff: chrome/browser/font_family_cache.cc

Issue 2624583002: Remove redundant c_str() calls. (Closed)
Patch Set: Created 3 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/font_family_cache.cc
diff --git a/chrome/browser/font_family_cache.cc b/chrome/browser/font_family_cache.cc
index 45d6a9affdefe337c41453622f9195ed48714e15..6106364eb5aa49dd5d85256a0e3639055ffe6b39 100644
--- a/chrome/browser/font_family_cache.cc
+++ b/chrome/browser/font_family_cache.cc
@@ -69,7 +69,7 @@ base::string16 FontFamilyCache::FetchFont(const char* script,
// Register for profile preference changes.
profile_pref_registrar_.Add(
- pref_name.c_str(),
+ pref_name,
base::Bind(&FontFamilyCache::OnPrefsChanged, base::Unretained(this)));
return font16;
}
@@ -122,7 +122,7 @@ void FontFamilyCache::OnPrefsChanged(const std::string& pref_name) {
// Clear the cache and the observer.
map.erase(it2);
- profile_pref_registrar_.Remove(pref_name.c_str());
+ profile_pref_registrar_.Remove(pref_name);
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698