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

Unified Diff: ash/mus/accelerators/accelerator_controller_registrar.cc

Issue 2194353002: mash: Migrate ScopedTargetRootWindow to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reflow comment Created 4 years, 4 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/mus/accelerators/accelerator_controller_registrar.cc
diff --git a/ash/mus/accelerators/accelerator_controller_registrar.cc b/ash/mus/accelerators/accelerator_controller_registrar.cc
index 1c5ca651d5a7d1c57e3c376bd0c9d38c9ced9cd6..838774c1fce86508844d18058c1f59fccdc11eaf 100644
--- a/ash/mus/accelerators/accelerator_controller_registrar.cc
+++ b/ash/mus/accelerators/accelerator_controller_registrar.cc
@@ -85,7 +85,7 @@ ui::mojom::EventResult AcceleratorControllerRegistrar::OnAccelerator(
accelerator);
WmWindow* target_window = WmShell::Get()->GetFocusedWindow();
if (!target_window)
- target_window = WmShell::Get()->GetRootWindowForNewWindows();
+ target_window = WmShell::Get()->root_window_for_new_windows();
DCHECK(target_window);
return router_->ProcessAccelerator(target_window, *(event.AsKeyEvent()),
accelerator)

Powered by Google App Engine
This is Rietveld 408576698