Chromium Code Reviews| Index: ios/chrome/browser/tabs/tab.mm |
| diff --git a/ios/chrome/browser/tabs/tab.mm b/ios/chrome/browser/tabs/tab.mm |
| index bb7f69a41d35c8f56349c2158c41943304301f82..f65d7c105563e52a7f2d8499ce703789f181f0b6 100644 |
| --- a/ios/chrome/browser/tabs/tab.mm |
| +++ b/ios/chrome/browser/tabs/tab.mm |
| @@ -1451,17 +1451,9 @@ 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; |
|
rohitrao (ping after 24h)
2017/03/07 13:51:22
There is a small logic change here, in that the ol
pkl (ping after 24h if needed)
2017/03/07 22:22:01
I added a check to download manager controller to
|
| DownloadManagerController* downloadController = |
| - [[[DownloadManagerController alloc] |
| - initWithURL:url |
| - requestContextGetter:browserState_->GetRequestContext() |
| - storeKitLauncher:storeKitLauncher] autorelease]; |
| + [[[DownloadManagerController alloc] initWithWebState:self.webState |
|
rohitrao (ping after 24h)
2017/03/07 13:51:22
This addresses the "followup" comments that I left
pkl (ping after 24h if needed)
2017/03/07 22:07:19
Acknowledged.
|
| + downloadURL:url] autorelease]; |
| [downloadController start]; |
| return downloadController; |
| } |