Reland "Use IncognitoTabModelObserver to break IncognitoTabModel->.incognito"
Fixed version with integration test to guard against the bug that required the revert. Original message: Use IncognitoTabModelObserver to break IncognitoTabModel->.incognito Two new classes IncognitoNotificationPresenceController and IncognitoProfileDestroyer now bind the TabModelSelector to the .incognito package, controlling respectively the incognito notification and the incognito Profile destruction. Since TabModelSelectorBase creates the TabModels only after native load, it acts as a relay for the events. It is changed to recognize that there are two TabModels, one normal and one incognito, so it can observe the incognito one. Splitting IncognitoTabModel into interface and impl keeps tests from having to depend on IncognitoTabModelImpl. Bug: 1109013 Change-Id: I04421e2f58e7ab498fbab31657175ee5e2c310b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2378733Reviewed-by:David Trainor <dtrainor@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Cr-Commit-Position: refs/heads/master@{#804332}
Showing
Please register or sign in to comment