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

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

Issue 2655463014: Pass the correct webState to the nativeContent. (Closed)
Patch Set: extend nativeprovider 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/ui/preload_controller.mm
diff --git a/ios/chrome/browser/ui/preload_controller.mm b/ios/chrome/browser/ui/preload_controller.mm
index 5c4c43d33074aadb72dffd61782c90b461500ed9..9833688df5dd1bb775371d32819742c649904129 100644
--- a/ios/chrome/browser/ui/preload_controller.mm
+++ b/ios/chrome/browser/ui/preload_controller.mm
@@ -277,7 +277,8 @@ class PrefetchDelegate : public net::URLFetcherDelegate {
// Override the CRWNativeContentProvider methods to cancel any prerenders that
// require native content.
-- (id<CRWNativeContent>)controllerForURL:(const GURL&)url {
+- (id<CRWNativeContent>)controllerForURL:(const GURL&)url
+ withWebState:(web::WebState*)webState {
[self schedulePrerenderCancel];
return nil;
}

Powered by Google App Engine
This is Rietveld 408576698