| 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;
|
| }
|
|
|