|
Don't pass DownloadItemModel ownership.
DownloadItemModel is a thin wrapper around DownloadItem*. It's
easier to instantiate it from a DownloadItem* than try to pass
ownership around.
Doing so was required when BaseDownloadItemModel existed, and the
actual model could be either a DownloadItemModel or a
SavePageModel. However this is no longer the case.
In addition, DownloadShelfContextMenu should track the lifetime
of the corresponding DownloadItem. It is possible for the
DownloadItem to be destroyed while the context menu is showing.
BUG= 116551
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175558
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+222 lines, -204 lines) |
Patch |
|
M |
chrome/browser/download/download_item_model.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/download/download_item_model.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/download/download_shelf.h
|
View
|
|
3 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/download/download_shelf.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/download/download_shelf_context_menu.h
|
View
|
1
|
4 chunks |
+16 lines, -11 lines |
0 comments
|
Download
|
|
M |
chrome/browser/download/download_shelf_context_menu.cc
|
View
|
1
|
7 chunks |
+40 lines, -11 lines |
0 comments
|
Download
|
|
M |
chrome/browser/download/test_download_shelf.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/download/test_download_shelf.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/browser.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/download/download_item_controller.h
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/download/download_item_controller.mm
|
View
|
|
3 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/download/download_item_mac.h
|
View
|
|
4 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/download/download_item_mac.mm
|
View
|
|
4 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/download/download_shelf_controller.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/download/download_shelf_controller.mm
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/download/download_shelf_mac.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/download/download_shelf_mac.mm
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/download/download_item_gtk.h
|
View
|
|
5 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/download/download_item_gtk.cc
|
View
|
|
25 chunks |
+39 lines, -43 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc
|
View
|
1
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/download/download_shelf_gtk.h
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/download/download_shelf_gtk.cc
|
View
|
|
4 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/download/download_item_view.h
|
View
|
|
6 chunks |
+5 lines, -11 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/download/download_item_view.cc
|
View
|
|
23 chunks |
+42 lines, -45 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/download/download_shelf_context_menu_view.h
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/download/download_shelf_context_menu_view.cc
|
View
|
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/download/download_shelf_view.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/download/download_shelf_view.cc
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|