commit | 96efbf67188567dc65e6c5ce9eba4215b0e3cf51 | [log] [tgz] |
---|---|---|
author | Derek Cheng <imcheng@chromium.org> | Wed Sep 05 18:37:09 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Sep 05 18:37:09 2018 |
tree | 4d6188690287cf564e68d9634f991087da2dd64b | |
parent | f0a0fb97befa1021400e97910c637712d8f07789 [diff] |
[Cast MRP] Use app availability caching when adding sink query. The availability caching will now be checked when a new sink query is added. Before that, it is only checked during Refresh() (user gesture) and when sink is added. This prevents a request from being re-sent if a query was removed and re-added while the sink is still on the list. In addition, the cache rule now applies when a sink is added or updated. This means a request will be re-sent (subject to timing threshold) if its cached availability is kUnavailable. Note the rule to always use cache if the availability value is kAvailable hasn't changed. An app is considered to be available until it is offline, at which point the cache value will be invalidated. Bug: 809249 Change-Id: Iadcee4953b51464211c3ee91777683a640f1291a Reviewed-on: https://chromium-review.googlesource.com/1173477 Commit-Queue: Derek Cheng <imcheng@chromium.org> Reviewed-by: Takumi Fujimoto <takumif@chromium.org> Cr-Commit-Position: refs/heads/master@{#588947}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .