| Index: chrome/browser/prefs/scoped_pref_update.cc
|
| diff --git a/chrome/browser/prefs/scoped_pref_update.cc b/chrome/browser/prefs/scoped_pref_update.cc
|
| index 05a607cfd0b7ea8df9ff8e2e5ec9950a80a9cda7..024d71bf1e258afd5da30155f50eb1f3dc483542 100644
|
| --- a/chrome/browser/prefs/scoped_pref_update.cc
|
| +++ b/chrome/browser/prefs/scoped_pref_update.cc
|
| @@ -12,5 +12,8 @@ ScopedPrefUpdate::ScopedPrefUpdate(PrefService* service, const char* path)
|
| path_(path) {}
|
|
|
| ScopedPrefUpdate::~ScopedPrefUpdate() {
|
| - service_->pref_notifier()->FireObservers(path_.c_str());
|
| + // TODO(mnissler, danno): This sends a notification unconditionally, which is
|
| + // wrong. We should rather tell the PrefService that the user pref got
|
| + // updated.
|
| + service_->pref_notifier()->OnPreferenceChanged(path_.c_str());
|
| }
|
|
|