| Index: base/prefs/pref_notifier_impl.cc
|
| diff --git a/base/prefs/pref_notifier_impl.cc b/base/prefs/pref_notifier_impl.cc
|
| index c02a7b3f5a5bfd8d4bd5c56ce20ca699e6d10346..6bf960388677153105370d2f2a9b5e2c80e72a5c 100644
|
| --- a/base/prefs/pref_notifier_impl.cc
|
| +++ b/base/prefs/pref_notifier_impl.cc
|
| @@ -38,7 +38,7 @@ PrefNotifierImpl::~PrefNotifierImpl() {
|
| init_observers_.clear();
|
| }
|
|
|
| -void PrefNotifierImpl::AddPrefObserver(const char* path,
|
| +void PrefNotifierImpl::AddPrefObserver(const std::string& path,
|
| PrefObserver* obs) {
|
| // Get the pref observer list associated with the path.
|
| PrefObserverList* observer_list = NULL;
|
| @@ -56,7 +56,7 @@ void PrefNotifierImpl::AddPrefObserver(const char* path,
|
| observer_list->AddObserver(obs);
|
| }
|
|
|
| -void PrefNotifierImpl::RemovePrefObserver(const char* path,
|
| +void PrefNotifierImpl::RemovePrefObserver(const std::string& path,
|
| PrefObserver* obs) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
|
|
| @@ -98,7 +98,7 @@ void PrefNotifierImpl::FireObservers(const std::string& path) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
|
|
| // Only send notifications for registered preferences.
|
| - if (!pref_service_->FindPreference(path.c_str()))
|
| + if (!pref_service_->FindPreference(path))
|
| return;
|
|
|
| const PrefObserverMap::iterator observer_iterator =
|
|
|