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

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

Issue 2740473002: DownloadManagerController now uses WebState (Closed)
Patch Set: handles nil StoreKitTabHelper Created 3 years, 9 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/downloads/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/tabs/tab.mm
diff --git a/ios/chrome/browser/tabs/tab.mm b/ios/chrome/browser/tabs/tab.mm
index 763695268744551d669478fa349ba17e63e8c46d..d151597d8065eeecb9d2704a7ab3565f78f1baf0 100644
--- a/ios/chrome/browser/tabs/tab.mm
+++ b/ios/chrome/browser/tabs/tab.mm
@@ -1444,17 +1444,10 @@ void TabInfoBarObserver::OnInfoBarReplaced(infobars::InfoBar* old_infobar,
}
- (id<CRWNativeContent>)controllerForUnhandledContentAtURL:(const GURL&)url {
- StoreKitTabHelper* helper = StoreKitTabHelper::FromWebState(self.webState);
- if (!helper)
- return nil;
- id<StoreKitLauncher> storeKitLauncher = helper->GetLauncher();
- if (!storeKitLauncher)
- return nil;
+ // Shows download manager UI for unhandled content.
DownloadManagerController* downloadController =
- [[[DownloadManagerController alloc]
- initWithURL:url
- requestContextGetter:browserState_->GetRequestContext()
- storeKitLauncher:storeKitLauncher] autorelease];
+ [[[DownloadManagerController alloc] initWithWebState:self.webState
+ downloadURL:url] autorelease];
[downloadController start];
return downloadController;
}
« no previous file with comments | « no previous file | ios/chrome/browser/ui/downloads/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698