Fix location bar text bug after tab close or switch from incognito.

When closing the current tab, the URL bar was getting the text after
focusing the next tab. This was also causing the delete button to show
up after switching back from incognito mode to normal mode. Explicitly
setting the URL bar text to empty when the tab count changes fixes this
in both cases.

R=yusufo@chromium.org

Bug: 934911
Change-Id: I12f798225844ca751e0240a03ab2861bd76232bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1615641
Commit-Queue: Matt Simmons <mattsimmons@chromium.org>
Reviewed-by: Yusuf Ozuysal <yusufo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#661864}
1 file changed