chore: remove deprecated shell.moveItemToTrash() (#26723)
This commit is contained in:
parent
59b4d5c156
commit
09d7b2bc91
8 changed files with 1 additions and 93 deletions
|
@ -85,16 +85,6 @@ v8::Local<v8::Promise> OpenPath(v8::Isolate* isolate,
|
|||
return handle;
|
||||
}
|
||||
|
||||
bool MoveItemToTrash(gin::Arguments* args) {
|
||||
base::FilePath full_path;
|
||||
args->GetNext(&full_path);
|
||||
|
||||
bool delete_on_fail = false;
|
||||
args->GetNext(&delete_on_fail);
|
||||
|
||||
return platform_util::MoveItemToTrash(full_path, delete_on_fail);
|
||||
}
|
||||
|
||||
v8::Local<v8::Promise> TrashItem(v8::Isolate* isolate,
|
||||
const base::FilePath& path) {
|
||||
gin_helper::Promise<void> promise(isolate);
|
||||
|
@ -181,7 +171,6 @@ void Initialize(v8::Local<v8::Object> exports,
|
|||
dict.SetMethod("showItemInFolder", &platform_util::ShowItemInFolder);
|
||||
dict.SetMethod("openPath", &OpenPath);
|
||||
dict.SetMethod("openExternal", &OpenExternal);
|
||||
dict.SetMethod("moveItemToTrash", &MoveItemToTrash);
|
||||
dict.SetMethod("trashItem", &TrashItem);
|
||||
dict.SetMethod("beep", &platform_util::Beep);
|
||||
#if defined(OS_WIN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue