Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: chrome/browser/ui/webui/downloads_dom_handler.cc

Issue 9384024: Prefer ScopedNestableTaskAllower over manual save/restore (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/downloads_dom_handler.cc
diff --git a/chrome/browser/ui/webui/downloads_dom_handler.cc b/chrome/browser/ui/webui/downloads_dom_handler.cc
index b340c0882141187d3db4b0146ef4b66435ccc3a2..16963fc0924b9f2f04f61223ddcdf14bc908420c 100644
--- a/chrome/browser/ui/webui/downloads_dom_handler.cc
+++ b/chrome/browser/ui/webui/downloads_dom_handler.cc
@@ -268,7 +268,7 @@ void DownloadsDOMHandler::HandleDrag(const ListValue* args) {
gfx::NativeView view = web_ui()->GetWebContents()->GetNativeView();
{
// Enable nested tasks during DnD, while |DragDownload()| blocks.
- MessageLoop::ScopedNestableTaskAllower allower(MessageLoop::current());
+ MessageLoop::ScopedNestableTaskAllower allow(MessageLoop::current());
download_util::DragDownload(file, icon, view);
}
}

Powered by Google App Engine
This is Rietveld 408576698