ScopedNestableTaskAllower doesn't take an argument
This commit is contained in:
parent
b9cd3493ac
commit
5a757449b0
4 changed files with 4 additions and 8 deletions
|
@ -1688,8 +1688,7 @@ void WebContents::StartDrag(const mate::Dictionary& item,
|
|||
|
||||
// Start dragging.
|
||||
if (!files.empty()) {
|
||||
base::MessageLoop::ScopedNestableTaskAllower allow(
|
||||
base::MessageLoop::current());
|
||||
base::MessageLoop::ScopedNestableTaskAllower allow;
|
||||
DragFileItems(files, icon->image(), web_contents()->GetNativeView());
|
||||
} else {
|
||||
args->ThrowError("Must specify either 'file' or 'files' option");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue