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

Unified Diff: chrome/browser/extensions/api/preference/preference_helpers.cc

Issue 2624583002: Remove redundant c_str() calls. (Closed)
Patch Set: Replace host() with host_piece() call 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/extensions/api/preference/preference_helpers.cc
diff --git a/chrome/browser/extensions/api/preference/preference_helpers.cc b/chrome/browser/extensions/api/preference/preference_helpers.cc
index e2b3577cbe59298be11c837761513941770bfb5f..4efaae43be73b152a4388205562b9beb3c753656 100644
--- a/chrome/browser/extensions/api/preference/preference_helpers.cc
+++ b/chrome/browser/extensions/api/preference/preference_helpers.cc
@@ -62,7 +62,7 @@ const char* GetLevelOfControl(
bool from_incognito = false;
bool* from_incognito_ptr = incognito ? &from_incognito : NULL;
const PrefService::Preference* pref =
- prefs->FindPreference(browser_pref.c_str());
+ prefs->FindPreference(browser_pref);
CHECK(pref);
if (!pref->IsExtensionModifiable())
« no previous file with comments | « chrome/browser/extensions/api/preference/preference_api.cc ('k') | chrome/browser/extensions/api/tabs/tabs_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698