• khmel@google.com's avatar
    arc: Fix race condition applying location and B&R settings. · 0d31fd73
    khmel@google.com authored
    This fix race condition when settings are driven by mojo instance
    creation for intent helper and onArcInitialStart is called due the
    communication via auth mojom. That leads to case when onArcInitialStart
    is not called for arc settings and these settings are not applied on
    Android side.
    
    Bug: 822459
    Test: Unit tests added. Manually on device. Simulate race condition,
    observer that all consumers of onArcInitialStart are called. Only
    settings component has such race. Other consumers are created on
    session start and do not have this race.
    
    Change-Id: Iab0a5fe53d55c3e84fbe532cf7c8d5b720e67bcb
    Reviewed-on: https://chromium-review.googlesource.com/967069
    Commit-Queue: Yury Khmel <khmel@google.com>
    Reviewed-by: default avatarHidehiko Abe <hidehiko@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#549204}
    0d31fd73
fake_intent_helper_instance.cc 4.83 KB