[ToolbarMVC] Replace LocationBar#setUrlToPageUrl with observer method
This removes the need to "poke" LocationBar when the url might have changed; instead LocationBarModel is poked and notifies its observers. LocationBarModel also triggers a URL change notification when a new tab is selected. Following the established pattern, the url is calculated lazily. Bug: 1142883 Change-Id: Ic7b2b85343d482389082d896321cb42130ab758d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2507813 Commit-Queue: Patrick Noland <pnoland@chromium.org> Reviewed-by:Ted Choc <tedchoc@chromium.org> Reviewed-by:
Peter Conn <peconn@chromium.org> Reviewed-by:
Filip Gorski <fgorski@chromium.org> Cr-Commit-Position: refs/heads/master@{#822863}
Showing
Please register or sign in to comment