|
Download filename determination refactor (3/3)
Move prompting logic from content/ to chrome/. When determining
the target path for a download, we used to notify content/ of
what the target path was along with a flag indicating whether the
user should be prompted. Then DownloadManager would call into the
DownloadManagerDelegate to request a prompt if necessary. This
patch short circuits the logic so that the
DownloadManagerDelegate would prompt the user as necessary and
only pass the final path to the DownloadItem.
BUG= 78085
TEST=unit tests
TBR=sky,mirandac
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148703
Total comments: 14
Total comments: 12
Total comments: 11
Total comments: 5
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+820 lines, -772 lines) |
Patch |
 |
M |
chrome/browser/browsing_data/browsing_data_remover.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/download/chrome_download_manager_delegate.h
|
View
|
1
2
3
4
5
6
7
|
8 chunks |
+50 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/chrome_download_manager_delegate.cc
|
View
|
1
2
3
4
5
6
7
|
11 chunks |
+85 lines, -41 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/chrome_download_manager_delegate_unittest.cc
|
View
|
1
2
3
|
30 chunks |
+165 lines, -82 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
49 chunks |
+50 lines, -86 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_file_picker.h
|
View
|
1
2
3
4
|
3 chunks |
+16 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_file_picker.cc
|
View
|
1
2
3
|
3 chunks |
+19 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_file_picker_chromeos.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_file_picker_chromeos.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+12 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_service.h
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_service.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+22 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_status_updater.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_status_updater.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_test_observer.h
|
View
|
1
2
3
4
5
|
7 chunks |
+33 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_test_observer.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
8 chunks |
+70 lines, -19 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/crx_installer_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/off_the_record_profile_impl.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser_close_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_item_impl.h
|
View
|
1
2
3
4
|
5 chunks |
+14 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_item_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+39 lines, -32 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_item_impl_delegate.h
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_item_impl_delegate.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_item_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
13 chunks |
+55 lines, -75 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_manager_impl.h
|
View
|
1
2
3
4
|
5 chunks |
+11 lines, -14 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_manager_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
10 chunks |
+49 lines, -109 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_manager_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
8 chunks |
+10 lines, -69 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/download_item.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+1 line, -22 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/download_manager.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+2 lines, -21 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/download_manager_delegate.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+30 lines, -19 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/download_manager_delegate.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/public/test/mock_download_item.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+10 lines, -16 lines |
0 comments
|
Download
|
 |
M |
content/public/test/mock_download_manager.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+14 lines, -22 lines |
0 comments
|
Download
|
 |
M |
content/shell/shell_download_manager_delegate.h
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/shell/shell_download_manager_delegate.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+17 lines, -28 lines |
0 comments
|
Download
|
Total messages: 21 (0 generated)
|