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

Unified Diff: ash/common/accelerators/debug_commands.cc

Issue 2798333005: Moves WmWindow::GetInternalWidget() into a standalone function (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/devtools/ash_devtools_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/accelerators/debug_commands.cc
diff --git a/ash/common/accelerators/debug_commands.cc b/ash/common/accelerators/debug_commands.cc
index 60a91e3f715d6b627b794b50f255fda51bd302c8..edb9adcb085255a945ce84c9418282440765858a 100644
--- a/ash/common/accelerators/debug_commands.cc
+++ b/ash/common/accelerators/debug_commands.cc
@@ -13,9 +13,9 @@
#include "ash/common/wallpaper/wallpaper_delegate.h"
#include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
#include "ash/common/wm_shell.h"
-#include "ash/common/wm_window.h"
#include "ash/root_window_controller.h"
#include "ash/shell.h"
+#include "ash/wm/widget_finder.h"
#include "ash/wm/window_properties.h"
#include "ash/wm/window_util.h"
#include "base/command_line.h"
@@ -48,7 +48,7 @@ void HandlePrintViewHierarchy() {
aura::Window* active_window = wm::GetActiveWindow();
if (!active_window)
return;
- views::Widget* widget = WmWindow::Get(active_window)->GetInternalWidget();
+ views::Widget* widget = GetInternalWidgetForWindow(active_window);
if (!widget)
return;
views::PrintViewHierarchy(widget->GetRootView());
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/devtools/ash_devtools_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698