| Index: chrome/browser/download/download_manager_unittest.cc
|
| diff --git a/chrome/browser/download/download_manager_unittest.cc b/chrome/browser/download/download_manager_unittest.cc
|
| index 2db13be7f78705e741004d86ae543bde01ac1c63..d6fa2c43f37c8aaaf2cd92f21bd33dd7d0426079 100644
|
| --- a/chrome/browser/download/download_manager_unittest.cc
|
| +++ b/chrome/browser/download/download_manager_unittest.cc
|
| @@ -157,28 +157,29 @@ const struct {
|
| bool will_delete_crdownload;
|
| int expected_rename_count;
|
| } kDownloadRenameCases[] = {
|
| - // Safe download, download finishes BEFORE rename.
|
| - // Needs to be renamed only once. Crdownload file needs to be deleted.
|
| + // Safe download, download finishes BEFORE file name determined.
|
| + // Renamed twice (linear path through UI). Crdownload file does not need
|
| + // to be deleted.
|
| { FILE_PATH_LITERAL("foo.zip"),
|
| false,
|
| true,
|
| - true,
|
| - 1, },
|
| - // Dangerous download, download finishes BEFORE rename.
|
| + false,
|
| + 2, },
|
| + // Dangerous download, download finishes BEFORE file name determined.
|
| // Needs to be renamed only once.
|
| { FILE_PATH_LITERAL("unconfirmed xxx.crdownload"),
|
| true,
|
| true,
|
| false,
|
| 1, },
|
| - // Safe download, download finishes AFTER rename.
|
| + // Safe download, download finishes AFTER file name determined.
|
| // Needs to be renamed twice.
|
| { FILE_PATH_LITERAL("foo.zip"),
|
| false,
|
| false,
|
| false,
|
| 2, },
|
| - // Dangerous download, download finishes AFTER rename.
|
| + // Dangerous download, download finishes AFTER file name determined.
|
| // Needs to be renamed only once.
|
| { FILE_PATH_LITERAL("unconfirmed xxx.crdownload"),
|
| true,
|
|
|