| Index: content/browser/download/drag_download_file.cc
|
| diff --git a/content/browser/download/drag_download_file.cc b/content/browser/download/drag_download_file.cc
|
| index cecb9be189225e4982ab684f237322a1fbe8aba9..c4bb898a511e1177443b7d952035aafe3deb2f10 100644
|
| --- a/content/browser/download/drag_download_file.cc
|
| +++ b/content/browser/download/drag_download_file.cc
|
| @@ -223,11 +223,10 @@ void DragDownloadFile::AssertCurrentlyOnUIThread() {
|
| void DragDownloadFile::StartNestedMessageLoop() {
|
| AssertCurrentlyOnDragThread();
|
|
|
| - bool old_state = MessageLoop::current()->NestableTasksAllowed();
|
| - MessageLoop::current()->SetNestableTasksAllowed(true);
|
| + MessageLoop::ScopedNestableTaskAllower allow(MessageLoop::current());
|
| is_running_nested_message_loop_ = true;
|
| MessageLoop::current()->Run();
|
| - MessageLoop::current()->SetNestableTasksAllowed(old_state);
|
| + DCHECK(!is_running_nested_message_loop_);
|
| }
|
|
|
| void DragDownloadFile::QuitNestedMessageLoop() {
|
|
|