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

Unified Diff: ash/common/wm/mru_window_tracker.cc

Issue 2787363002: Moves couple of WmShell methods to standalone functions (Closed)
Patch Set: feedback and fix applist Created 3 years, 9 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/common/wm/mru_window_tracker.cc
diff --git a/ash/common/wm/mru_window_tracker.cc b/ash/common/wm/mru_window_tracker.cc
index f71f2f549371e4f8e0e187a044923510072f9d4c..f8864bb0d45a4db8bc4cd994cd1cab053e8f0a30 100644
--- a/ash/common/wm/mru_window_tracker.cc
+++ b/ash/common/wm/mru_window_tracker.cc
@@ -13,6 +13,7 @@
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/shell.h"
+#include "ash/wm/window_util.h"
#include "base/bind.h"
#include "ui/aura/window.h"
#include "ui/wm/public/activation_client.h"
@@ -126,7 +127,7 @@ void MruWindowTracker::SetIgnoreActivations(bool ignore) {
// If no longer ignoring window activations, move currently active window
// to front.
if (!ignore)
- SetActiveWindow(WmShell::Get()->GetActiveWindow());
+ SetActiveWindow(WmWindow::Get(wm::GetActiveWindow()));
}
//////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « ash/common/wm/maximize_mode/maximize_mode_event_handler.cc ('k') | ash/common/wm/overview/window_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698