Merge pull request #452 from marksamman/master

Move item to trash without confirming on Windows
This commit is contained in:
Cheng Zhao 2014-07-04 23:13:44 +08:00
commit cb08f35c7f

View file

@ -175,7 +175,7 @@ void MoveItemToTrash(const base::FilePath& path) {
SHFILEOPSTRUCT file_operation = {0};
file_operation.wFunc = FO_DELETE;
file_operation.pFrom = double_terminated_path;
file_operation.fFlags = FOF_ALLOWUNDO;
file_operation.fFlags = FOF_ALLOWUNDO | FOF_SILENT | FOF_NOCONFIRMATION;
SHFileOperation(&file_operation);
}