commit | 673a051b65e3ab4ae0c3fb23356ac00522e0ee3e | [log] [tgz] |
---|---|---|
author | Nigel Tao <nigeltao@chromium.org> | Thu Dec 20 03:08:47 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Dec 20 03:08:47 2018 |
tree | 1ff5395bd6fd5f2967cd0a96d4804b07308a3dc1 | |
parent | d2b2593c5b86d1f3a3340cef43b397d9ade97d86 [diff] |
Add an AppUpdate::StateIsNull method This also loosens an AppUpdate's fields (state and delta) to allow nullptr values. Previously, when presenting the first AppUpdate for a given app_id, we have duplicated the delta to also be the initial state, so that the overall AppUpdate's FooChanged methods all return false. This makes it awkward in client code that needs to do something (e.g. update a UI icon) both for the initial update and whenever the icon actually changes. Follow-up commits will use the new StateIsNull method. BUG=826982 Change-Id: I284977e7bbc692b0a7b725c658d96ba77e40cfbb Reviewed-on: https://chromium-review.googlesource.com/c/1373250 Commit-Queue: Nigel Tao <nigeltao@chromium.org> Reviewed-by: Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#618091}
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 .