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

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

Issue 2740473002: DownloadManagerController now uses WebState (Closed)
Patch Set: 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
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;
}
« no previous file with comments | « no previous file | ios/chrome/browser/ui/downloads/BUILD.gn » ('j') | ios/chrome/browser/ui/downloads/download_manager_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698