|
This CL adds prompting for dangerous types of files (executable) when they are automatically downloaded.
The file is saved with a temporary name (dangerous_download_xxxx.download) in the download directory and the user is presented (in the download shelf and the download tab if opened) with a warning message and buttons to save/discard the download.
If discarded the download is removed (and its file deleted).
If saved, download goes as usual.
Dangerous downloads not confirmed by the user are deleted on shutdown.
TEST=Download a small exe file, try using the save/discard button from the download shelf and from the download tab (the intent is that the file has been entirely downloaded by the time you take action). Try again with a slow/big download (that time the download is expected not to be finished when approved/discarded).
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=3228
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1332 lines, -435 lines) |
Patch |
 |
M |
base/file_util.h
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/file_util_posix.cc
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/file_util_win.cc
|
View
|
|
1 chunk |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
base/string_util.h
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/string_util.cc
|
View
|
1
2
3
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/string_util_unittest.cc
|
View
|
1
2
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/app/generated_resources.grd
|
View
|
1
2
3
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/app/theme/download_button_right_bottom_no_dd.png
|
View
|
|
Binary file |
0 comments
|
Download
|
 |
A |
chrome/app/theme/download_button_right_middle_no_dd.png
|
View
|
|
Binary file |
0 comments
|
Download
|
 |
A |
chrome/app/theme/download_button_right_top_no_dd.png
|
View
|
|
Binary file |
0 comments
|
Download
|
 |
M |
chrome/app/theme/theme_resources.h
|
View
|
|
1 chunk |
+302 lines, -300 lines |
0 comments
|
Download
|
 |
M |
chrome/app/theme/theme_resources.rc
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_exe.cc
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_file.h
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_file.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_manager.h
|
View
|
1
2
3
|
10 chunks |
+73 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_manager.cc
|
View
|
1
2
3
|
16 chunks |
+215 lines, -35 lines |
1 comment
|
Download
|
 |
M |
chrome/browser/download/download_util.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/download/save_package.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/download_database.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/download_database.cc
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/download_types.h
|
View
|
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/history/history.h
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/history.cc
|
View
|
1
2
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/history_backend.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/history_backend.cc
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resource_dispatcher_host.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/views/download_item_view.h
|
View
|
|
7 chunks |
+44 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/views/download_item_view.cc
|
View
|
1
2
3
|
17 chunks |
+309 lines, -58 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/views/download_tab_view.h
|
View
|
1
2
3
|
6 chunks |
+27 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/views/download_tab_view.cc
|
View
|
1
2
3
|
23 chunks |
+177 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/views/native_button.h
|
View
|
1
2
3
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/views/native_button.cc
|
View
|
1
|
3 chunks |
+15 lines, -10 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|