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

Unified Diff: chrome/browser/ui/cocoa/download/download_shelf_controller.mm

Issue 10421021: Make DownloadProtectionService not use BrowserList::GetLastActive() to load a link. Instead pass th… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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: chrome/browser/ui/cocoa/download/download_shelf_controller.mm
===================================================================
--- chrome/browser/ui/cocoa/download/download_shelf_controller.mm (revision 138377)
+++ chrome/browser/ui/cocoa/download/download_shelf_controller.mm (working copy)
@@ -112,6 +112,7 @@
downloadItemControllers_.reset([[NSMutableArray alloc] init]);
bridge_.reset(new DownloadShelfMac(browser, self));
+ navigator_ = browser;
}
return self;
}
@@ -296,7 +297,9 @@
// Insert new item at the left.
scoped_nsobject<DownloadItemController> controller(
- [[DownloadItemController alloc] initWithModel:model shelf:self]);
+ [[DownloadItemController alloc] initWithModel:model
+ shelf:self
+ navigator:navigator_]);
// Adding at index 0 in NSMutableArrays is O(1).
[downloadItemControllers_ insertObject:controller.get() atIndex:0];
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_shelf_controller.h ('k') | chrome/browser/ui/gtk/download/download_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698