Fix incognito tab restore regression
It seems that the logic from the downstream file is different from the CL that upstreamed it. This CL restores the downstream logic. Consider this case: type == TabLaunchType.FROM_LONGPRESS_BACKGROUND: FALSE type == TabLaunchType.FROM_RESTORE: TRUE mTabModelSelector.isIncognitoSelected(): FALSE isNewTabIncognito: TRUE In the downstream version willOpenInForeground -> TRUE In the current version willOpenInForeground -> FALSE which incorrectlys restores the incognito tab even thought it isn't the current tab model. BUG=383470 Review URL: https://codereview.chromium.org/338833005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277851 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment