Skip to content
  • armansito's avatar
    dbus::ObjectManager: Add a match rule for properties before GetManagedObjects. · ebff093d
    armansito authored
    There is a race condition in the way that match rules get set up for object
    proxies created in response to GetManagedObjects that may cause us the miss
    PropertiesChanged signals if they're received before the match rule and filter
    function get added by ObjectProxy.
    
    This patch changes this to work the "intended" way: ObjectManager now adds a
    single match rule for its corresponding service name, and specifically for the
    org.freedesktop.DBus.Properties.PropertiesChanged signal. Once it receives the
    signal, ObjectManager dispatches the signal to the corresponding PropertySet.
    
    BUG=407109,400768
    TEST=dbus_unittests
    
    Review URL: https://codereview.chromium.org/510863002
    
    Cr-Commit-Position: refs/heads/master@{#293551}
    ebff093d