commit | 4e0a6c73d7ef08c53efa8bc8f0b6d3f37beeb968 | [log] [tgz] |
---|---|---|
author | Jay Harris <harrisjay@chromium.org> | Mon Jul 08 23:29:01 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Jul 08 23:29:01 2019 |
tree | dfdd858c11462ce3b1da60f825bf7434acfd0dcb | |
parent | b400e75b35be77e6fc75a2d7d20fc40b25f566b2 [diff] |
Refactors checking whether a url is in app to be more efficient. Previously this check was O(num_extensions*num_url_handlers) and we were repeating this check for the initial, last committed and visible urls. This improves the check be O(num_url_handlers) for hosted apps and O(1) for other AppBrowserControllers. This also renames IsSameScope to IsURLInApp, as different AppBrowserControllers do not have a concept of 'Scope'. Bug: 964167 Change-Id: Ie36a6c2176faf649524c529dba4ff359e48b91f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1687331 Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org> Reviewed-by: Alan Cutter <alancutter@chromium.org> Commit-Queue: Jay Harris <harrisjay@chromium.org> Cr-Commit-Position: refs/heads/master@{#675409}
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 .