Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: ios/chrome/browser/tabs/tab.mm

Issue 2650563002: Pass WebState to NativeAppNavigationController (Closed)
Patch Set: IsLinkNavigation() is now a util function w/ unit tests Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/tabs/tab.mm
diff --git a/ios/chrome/browser/tabs/tab.mm b/ios/chrome/browser/tabs/tab.mm
index db9e457ccfcf1faff648d8faf70497230d8c6cbd..78b62680901e68b074ef20634c1260f9d72eac49 100644
--- a/ios/chrome/browser/tabs/tab.mm
+++ b/ios/chrome/browser/tabs/tab.mm
@@ -2304,8 +2304,9 @@ void TabInfoBarObserver::OnInfoBarReplaced(infobars::InfoBar* old_infobar,
return;
DCHECK(!nativeAppNavigationController_);
nativeAppNavigationController_.reset([[NativeAppNavigationController alloc]
- initWithRequestContextGetter:browserState_->GetRequestContext()
- tab:self]);
+ initWithWebState:self.webState
+ requestContextGetter:browserState_->GetRequestContext()
+ tab:self]);
[self.webController addObserver:nativeAppNavigationController_];
DCHECK(nativeAppNavigationController_);
}

Powered by Google App Engine
This is Rietveld 408576698