mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
ScopedNestableTaskAllower doesn't take an argument
This commit is contained in:
committed by
Aleksei Kuzmin
parent
b9cd3493ac
commit
5a757449b0
@@ -188,8 +188,7 @@ bool PrintJob::FlushJob(base::TimeDelta timeout) {
|
||||
FROM_HERE, base::Bind(&PrintJob::Quit, quit_factory_.GetWeakPtr()),
|
||||
timeout);
|
||||
|
||||
base::MessageLoop::ScopedNestableTaskAllower allow(
|
||||
base::MessageLoop::current());
|
||||
base::MessageLoop::ScopedNestableTaskAllower allow;
|
||||
base::RunLoop().Run();
|
||||
|
||||
return true;
|
||||
|
||||
@@ -431,8 +431,7 @@ bool PrintViewManagerBase::RunInnerMessageLoop() {
|
||||
|
||||
// Need to enable recursive task.
|
||||
{
|
||||
base::MessageLoop::ScopedNestableTaskAllower allow(
|
||||
base::MessageLoop::current());
|
||||
base::MessageLoop::ScopedNestableTaskAllower allow;
|
||||
base::RunLoop().Run();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user