Commit 2758f8e3 authored by sczs's avatar sczs Committed by Commit Bot

[ios] Uses OriginalChromeBrowserState for RecentTabs

Bug: 826367
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I6f3659b846ecf118e1c5710a77ba020ba6eb2d25
Reviewed-on: https://chromium-review.googlesource.com/1123692Reviewed-by: default avatarMark Cogan <marq@chromium.org>
Commit-Queue: Sergio Collazos <sczs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575679}
parent 281621ef
...@@ -3204,10 +3204,13 @@ applicationCommandEndpoint:(id<ApplicationCommands>)applicationCommandEndpoint { ...@@ -3204,10 +3204,13 @@ applicationCommandEndpoint:(id<ApplicationCommands>)applicationCommandEndpoint {
- (void)createRecentTabsCoordinator { - (void)createRecentTabsCoordinator {
if (experimental_flags::IsRecentTabsUIRebootEnabled()) { if (experimental_flags::IsRecentTabsUIRebootEnabled()) {
// New RecentTabs UIReboot coordinator. // New RecentTabs UIReboot coordinator. Always use the regular BrowserState
RecentTabsCoordinator* recentTabsCoordinator = [ // since the incognito one doesn't have a SignIn manager.
[RecentTabsCoordinator alloc] initWithBaseViewController:self RecentTabsCoordinator* recentTabsCoordinator =
browserState:_browserState]; [[RecentTabsCoordinator alloc]
initWithBaseViewController:self
browserState:_browserState
->GetOriginalChromeBrowserState()];
recentTabsCoordinator.loader = self; recentTabsCoordinator.loader = self;
recentTabsCoordinator.dispatcher = self.dispatcher; recentTabsCoordinator.dispatcher = self.dispatcher;
self.recentTabsCoordinator = recentTabsCoordinator; self.recentTabsCoordinator = recentTabsCoordinator;
......
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