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

Unified Diff: ios/chrome/browser/ui/browser_view_controller.mm

Issue 2660333006: Pass the correct webState to the nativeContent. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | ios/chrome/browser/ui/browser_view_controller_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/browser_view_controller.mm
diff --git a/ios/chrome/browser/ui/browser_view_controller.mm b/ios/chrome/browser/ui/browser_view_controller.mm
index 2cc3d7b1a3e1efc3f37c274ad7b10aeb8ddccbf7..84021e1779648215c503b9d5ca5db45a95317c53 100644
--- a/ios/chrome/browser/ui/browser_view_controller.mm
+++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -2902,7 +2902,8 @@ class BrowserBookmarkModelBridge : public bookmarks::BookmarkModelObserver {
host == kChromeUITermsHost || host == kChromeUIOfflineHost;
}
-- (id<CRWNativeContent>)controllerForURL:(const GURL&)url {
+- (id<CRWNativeContent>)controllerForURL:(const GURL&)url
+ webState:(web::WebState*)webState {
DCHECK(url.SchemeIs(kChromeUIScheme));
id<CRWNativeContent> nativeController = nil;
@@ -2955,7 +2956,7 @@ class BrowserBookmarkModelBridge : public bookmarks::BookmarkModelObserver {
StaticHtmlNativeContent* staticNativeController =
[[[OfflinePageNativeContent alloc] initWithLoader:self
browserState:_browserState
- webState:[self currentWebState]
+ webState:webState
URL:url] autorelease];
[self setOverScrollActionControllerToStaticNativeContent:
staticNativeController];
« no previous file with comments | « no previous file | ios/chrome/browser/ui/browser_view_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698