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

Unified Diff: components/translate/core/browser/translate_prefs.cc

Issue 2779893005: Continue to clean c_str() calls. (Closed)
Patch Set: Revert changes in font_service_app.cc Created 3 years, 9 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: components/translate/core/browser/translate_prefs.cc
diff --git a/components/translate/core/browser/translate_prefs.cc b/components/translate/core/browser/translate_prefs.cc
index f4b7cdde4d60f6b3ecea4d9e0bdb0262ee23eb70..6e8f7b6ccfd92f8a9c02dc5a2644a333783ab710 100644
--- a/components/translate/core/browser/translate_prefs.cc
+++ b/components/translate/core/browser/translate_prefs.cc
@@ -421,7 +421,7 @@ void TranslatePrefs::UpdateLanguageList(
std::vector<base::StringPiece> accept_languages;
ExpandLanguageCodes(languages, &accept_languages);
std::string accept_languages_str = base::JoinString(accept_languages, ",");
- prefs_->SetString(accept_languages_pref_.c_str(), accept_languages_str);
+ prefs_->SetString(accept_languages_pref_, accept_languages_str);
}
bool TranslatePrefs::CanTranslateLanguage(
« no previous file with comments | « components/sync_preferences/synced_pref_change_registrar.cc ('k') | components/webcrypto/algorithms/test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698