[WebLayer] Clarify naming in flow of BVC setting/clearing its active tab
When BrowserViewController sets/clears its active Tab, it notifies the Tab in question. This is currently done via TabImpl#onDid{Gain, Lose}Active callbacks. As boliu@ pointed out on the bug linked below, this is confusing as there would be a natural expectation that these callbacks are invoked when the *BrowserImpl* is setting and clearing its active Tab. These flows are not identical; for example, when the BrowserImpl is moved between Activities BrowserViewController clears its active Tab as part of its destruction but the actual active Tab in the BrowserImpl doesn't change. This CL updates the relevant method names for clarity. Bug: 1129077 Change-Id: I04fd58d6bcd69abfdc7cdde3a3c0186d83d67b39 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2421309Reviewed-by:Bo <boliu@chromium.org> Reviewed-by:
Scott Violet <sky@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/master@{#809368}
Showing
Please register or sign in to comment