Query tiles: Only load TileGroup into memory during initialization.
Currently the UI may call the backend multiple times when showing the subtiles. If the in memory TileGroup changed, the user may see unrelated second level tiles loaded. This CL only set the in memory TileGroup during initialization, in order to make the UI always has the same TileGroup data. During initialization, now we select the most recent valid TileGroup instead of always picking the first valid tile group. Also clean up TileManagerTest a little bit. Bug: 1076665 Change-Id: I9c406509cebc06a3afabc09dcc1a873784f4db73 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2203697 Commit-Queue: Xing Liu <xingliu@chromium.org> Reviewed-by:Min Qin <qinmin@chromium.org> Reviewed-by:
David Trainor <dtrainor@chromium.org> Reviewed-by:
Hesen Zhang <hesen@chromium.org> Reviewed-by:
Shakti Sahu <shaktisahu@chromium.org> Cr-Commit-Position: refs/heads/master@{#769547}
Showing
Please register or sign in to comment