[ios] Moves cached bookmark path reconstruction out of viewDidLoad.
UINavigationBar renders incorrectly when pushViewController:animated: is called from within viewDidLoad. Sidestep this by pushing every BookmarkHomeViewController onto the navigation stack before making the Bookmarks UI visible. In cases where the BookmarkModel has not yet been loaded and a spinner is shown, we fall back to the original logic of recursively pushing new view controllers. That does not trigger the UIKit bug because viewDidLoad has already completed. BUG=None Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet Change-Id: Id9535f6cb9e93fb85d27d4627adeb404d8564dc4 Reviewed-on: https://chromium-review.googlesource.com/1070793 Commit-Queue: Rohit Rao <rohitrao@chromium.org> Reviewed-by:Sergio Collazos <sczs@chromium.org> Cr-Commit-Position: refs/heads/master@{#561622}
Showing
Please register or sign in to comment