Commit 639af85a authored by Olivier Robin's avatar Olivier Robin Committed by Commit Bot

Open normal tab on resume session.

When resuming session, open a normal tab even if the previous active
browser was incognito.

Bug: 1095592
Change-Id: I77cf1939cc210b081deff8dd5cb8f987191200b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2252804
Commit-Queue: Mark Cogan <marq@chromium.org>
Reviewed-by: default avatarMark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#780323}
parent a881f6dd
......@@ -378,12 +378,11 @@ const char kMultiWindowOpenInNewWindowHistogram[] =
[self shouldOpenNTPTabOnActivationOfBrowser:self.currentInterface
.browser]) {
DCHECK(!self.dismissingTabSwitcher);
[self beginDismissingTabSwitcherWithCurrentBrowser:self.currentInterface
[self beginDismissingTabSwitcherWithCurrentBrowser:self.mainInterface
.browser
focusOmnibox:NO];
OpenNewTabCommand* command = [OpenNewTabCommand
commandWithIncognito:self.currentInterface.incognito];
OpenNewTabCommand* command = [OpenNewTabCommand commandWithIncognito:NO];
command.userInitiated = NO;
Browser* browser = self.currentInterface.browser;
id<ApplicationCommands> applicationHandler = HandlerForProtocol(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment