feat: macOS removal fallback when moveItemToTrash fails (#19700)
* feat: macOS removal fallback when moveItemToTrash fails * platform_util shouldn't know about mate::Arguments * pull full_path from args as well
This commit is contained in:
parent
b5798326e8
commit
e1824c00a9
6 changed files with 43 additions and 13 deletions
|
@ -335,7 +335,7 @@ void OpenExternal(const GURL& url,
|
|||
std::move(callback));
|
||||
}
|
||||
|
||||
bool MoveItemToTrash(const base::FilePath& path) {
|
||||
bool MoveItemToTrash(const base::FilePath& path, bool delete_on_fail) {
|
||||
base::win::ScopedCOMInitializer com_initializer;
|
||||
if (!com_initializer.Succeeded())
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue