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

Unified Diff: chrome/browser/ui/webui/instant_ui.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 | « chrome/browser/ui/chrome_pages.cc ('k') | chrome/common/pepper_flash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/instant_ui.cc
diff --git a/chrome/browser/ui/webui/instant_ui.cc b/chrome/browser/ui/webui/instant_ui.cc
index 9466b86f4f91b86cfa8b354d9bfb593237b3115b..859d307dadf2abee104fe9744dbb099d802b1770 100644
--- a/chrome/browser/ui/webui/instant_ui.cc
+++ b/chrome/browser/ui/webui/instant_ui.cc
@@ -121,7 +121,7 @@ void InstantUIMessageHandler::SetPreferenceValue(const base::ListValue* args) {
if (!args->GetString(1, &value))
return;
PrefService* prefs = Profile::FromWebUI(web_ui())->GetPrefs();
- prefs->SetString(pref_name.c_str(), value);
+ prefs->SetString(pref_name, value);
}
}
« no previous file with comments | « chrome/browser/ui/chrome_pages.cc ('k') | chrome/common/pepper_flash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698