ScopedNestableTaskAllower doesn't take an argument
This commit is contained in:
parent
b9cd3493ac
commit
5a757449b0
4 changed files with 4 additions and 8 deletions
|
@ -97,8 +97,7 @@ void MenuMac::PopupOnUI(const base::WeakPtr<NativeWindow>& native_window,
|
||||||
|
|
||||||
[popup_controllers_[window_id] setCloseCallback:close_callback];
|
[popup_controllers_[window_id] setCloseCallback:close_callback];
|
||||||
// Make sure events can be pumped while the menu is up.
|
// Make sure events can be pumped while the menu is up.
|
||||||
base::MessageLoop::ScopedNestableTaskAllower allow(
|
base::MessageLoop::ScopedNestableTaskAllower allow;
|
||||||
base::MessageLoop::current());
|
|
||||||
|
|
||||||
// One of the events that could be pumped is |window.close()|.
|
// One of the events that could be pumped is |window.close()|.
|
||||||
// User-initiated event-tracking loops protect against this by
|
// User-initiated event-tracking loops protect against this by
|
||||||
|
|
|
@ -1688,8 +1688,7 @@ void WebContents::StartDrag(const mate::Dictionary& item,
|
||||||
|
|
||||||
// Start dragging.
|
// Start dragging.
|
||||||
if (!files.empty()) {
|
if (!files.empty()) {
|
||||||
base::MessageLoop::ScopedNestableTaskAllower allow(
|
base::MessageLoop::ScopedNestableTaskAllower allow;
|
||||||
base::MessageLoop::current());
|
|
||||||
DragFileItems(files, icon->image(), web_contents()->GetNativeView());
|
DragFileItems(files, icon->image(), web_contents()->GetNativeView());
|
||||||
} else {
|
} else {
|
||||||
args->ThrowError("Must specify either 'file' or 'files' option");
|
args->ThrowError("Must specify either 'file' or 'files' option");
|
||||||
|
|
|
@ -188,8 +188,7 @@ bool PrintJob::FlushJob(base::TimeDelta timeout) {
|
||||||
FROM_HERE, base::Bind(&PrintJob::Quit, quit_factory_.GetWeakPtr()),
|
FROM_HERE, base::Bind(&PrintJob::Quit, quit_factory_.GetWeakPtr()),
|
||||||
timeout);
|
timeout);
|
||||||
|
|
||||||
base::MessageLoop::ScopedNestableTaskAllower allow(
|
base::MessageLoop::ScopedNestableTaskAllower allow;
|
||||||
base::MessageLoop::current());
|
|
||||||
base::RunLoop().Run();
|
base::RunLoop().Run();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -431,8 +431,7 @@ bool PrintViewManagerBase::RunInnerMessageLoop() {
|
||||||
|
|
||||||
// Need to enable recursive task.
|
// Need to enable recursive task.
|
||||||
{
|
{
|
||||||
base::MessageLoop::ScopedNestableTaskAllower allow(
|
base::MessageLoop::ScopedNestableTaskAllower allow;
|
||||||
base::MessageLoop::current());
|
|
||||||
base::RunLoop().Run();
|
base::RunLoop().Run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue