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

Unified Diff: components/sync_preferences/synced_pref_change_registrar.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/sync_preferences/synced_pref_change_registrar.cc
diff --git a/components/sync_preferences/synced_pref_change_registrar.cc b/components/sync_preferences/synced_pref_change_registrar.cc
index 3d8fa89bf23050d89e7a2403fdd708ecf2553834..5e2682ea98ad4705a334fe2bc083b1d5c388e8e9 100644
--- a/components/sync_preferences/synced_pref_change_registrar.cc
+++ b/components/sync_preferences/synced_pref_change_registrar.cc
@@ -59,7 +59,7 @@ bool SyncedPrefChangeRegistrar::IsObserved(const char* path) const {
void SyncedPrefChangeRegistrar::OnSyncedPrefChanged(const std::string& path,
bool from_sync) {
- if (pref_service_->IsManagedPreference(path.c_str()))
+ if (pref_service_->IsManagedPreference(path))
return;
ObserverMap::const_iterator iter = observers_.find(path);
if (iter == observers_.end())
« no previous file with comments | « components/sync_preferences/pref_model_associator.cc ('k') | components/translate/core/browser/translate_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698