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

Unified Diff: components/signin/core/browser/about_signin_internals.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
« no previous file with comments | « components/prefs/pref_service.cc ('k') | components/sync_preferences/pref_model_associator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/browser/about_signin_internals.cc
diff --git a/components/signin/core/browser/about_signin_internals.cc b/components/signin/core/browser/about_signin_internals.cc
index c8af7630e07575297d496a47fa5dad064b0acc51..da7be07b13c9cebeed398a47d6c5f0b0dd207abf 100644
--- a/components/signin/core/browser/about_signin_internals.cc
+++ b/components/signin/core/browser/about_signin_internals.cc
@@ -188,7 +188,7 @@ void AboutSigninInternals::RegisterPrefs(
for (int i = UNTIMED_FIELDS_BEGIN; i < UNTIMED_FIELDS_END; ++i) {
const std::string pref_path =
SigninStatusFieldToString(static_cast<UntimedSigninStatusField>(i));
- user_prefs->RegisterStringPref(pref_path.c_str(), std::string());
+ user_prefs->RegisterStringPref(pref_path, std::string());
}
for (int i = TIMED_FIELDS_BEGIN; i < TIMED_FIELDS_END; ++i) {
@@ -198,8 +198,8 @@ void AboutSigninInternals::RegisterPrefs(
const std::string time =
SigninStatusFieldToString(static_cast<TimedSigninStatusField>(i)) +
".time";
- user_prefs->RegisterStringPref(value.c_str(), std::string());
- user_prefs->RegisterStringPref(time.c_str(), std::string());
+ user_prefs->RegisterStringPref(value, std::string());
+ user_prefs->RegisterStringPref(time, std::string());
}
}
@@ -466,7 +466,7 @@ AboutSigninInternals::TokenInfo::ToValue() const {
scopes_str += *it + "<br/>";
}
token_info->SetString("scopes", scopes_str);
- token_info->SetString("request_time", GetTimeStr(request_time).c_str());
+ token_info->SetString("request_time", GetTimeStr(request_time));
if (removed_) {
token_info->SetString("status", "Token was revoked.");
« no previous file with comments | « components/prefs/pref_service.cc ('k') | components/sync_preferences/pref_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698