| Index: chrome/browser/printing/print_job.cc
|
| diff --git a/chrome/browser/printing/print_job.cc b/chrome/browser/printing/print_job.cc
|
| index b374b685fbb0c3af6cd0a6bd8c21738aa25ea2df..5602500ef4a163de56feebf4a153af74bffc5ba2 100644
|
| --- a/chrome/browser/printing/print_job.cc
|
| +++ b/chrome/browser/printing/print_job.cc
|
| @@ -202,11 +202,8 @@ bool PrintJob::FlushJob(int timeout_ms) {
|
| MessageLoop::current(), &MessageLoop::Quit);
|
| }
|
|
|
| - bool old_state = MessageLoop::current()->NestableTasksAllowed();
|
| - MessageLoop::current()->SetNestableTasksAllowed(true);
|
| + MessageLoop::ScopedNestableTaskAllower allow(MessageLoop::current());
|
| MessageLoop::current()->Run();
|
| - // Restore task state.
|
| - MessageLoop::current()->SetNestableTasksAllowed(old_state);
|
|
|
| return true;
|
| }
|
|
|