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

Unified Diff: ash/accelerators/nested_dispatcher_controller.cc

Issue 162633002: aura: Remove an unnecessary parameter from DispatcherClient::RunWithDispatcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: ash/accelerators/nested_dispatcher_controller.cc
diff --git a/ash/accelerators/nested_dispatcher_controller.cc b/ash/accelerators/nested_dispatcher_controller.cc
index d30d66d23458e88d4271c7ae7476235a3a50eed5..c551e948a5f0a59fb10184e319dbb53bd1cf5436 100644
--- a/ash/accelerators/nested_dispatcher_controller.cc
+++ b/ash/accelerators/nested_dispatcher_controller.cc
@@ -18,11 +18,9 @@ NestedDispatcherController::~NestedDispatcherController() {
void NestedDispatcherController::RunWithDispatcher(
base::MessagePumpDispatcher* nested_dispatcher,
- aura::Window* associated_window,
- bool nestable_tasks_allowed) {
+ aura::Window* associated_window) {
base::MessageLoopForUI* loop = base::MessageLoopForUI::current();
- bool did_allow_task_nesting = loop->NestableTasksAllowed();
- loop->SetNestableTasksAllowed(nestable_tasks_allowed);
+ base::MessageLoopForUI::ScopedNestableTaskAllower allow_nested(loop);
AcceleratorDispatcher dispatcher(nested_dispatcher, associated_window);
@@ -30,7 +28,6 @@ void NestedDispatcherController::RunWithDispatcher(
// use run_loop.QuitClosure().
base::RunLoop run_loop(&dispatcher);
run_loop.Run();
- loop->SetNestableTasksAllowed(did_allow_task_nesting);
}
} // namespace ash
« no previous file with comments | « ash/accelerators/nested_dispatcher_controller.h ('k') | ash/accelerators/nested_dispatcher_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698