Status: Available Owner: ---- CC: j...@chromium.org Labels: Type-Cleanup Pri-2 OS-All Area-BrowserBackend
New issue 6749 by t...@chromium.org: PrefMember observer doesn't fire when using PrefMember::SetValue http://code.google.com/p/chromium/issues/detail?id=6749 PrefMembers can register an additional pref observer. This is normally used so that the object that owns the PrefMember can be notified of changes to the PrefMember value. There is code in the PrefMember observer that tries to avoid an infinite loop between PrefMember::SetValue and PrefMember::Observe. It basically says that whenever PrefMember::SetValue is called, don't call the observer. This behavior is not obvious so it would be nice if we could still fire the observer once (but not repeatedly). One way to stop this would be to just have a counter and ensure that observe is only called once during a SetValue. Alternately, it may be the case that this isn't even possible now because pref observers only get notified when the pref changes (so repeatedly setting the value to the same thing doesn't do anything). -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---