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

Unified Diff: chrome/browser/ui/ash/multi_user/user_switch_util_unittest.cc

Issue 2775973002: Promotes more accessors from WmShell to Shell (Closed)
Patch Set: feedback 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: chrome/browser/ui/ash/multi_user/user_switch_util_unittest.cc
diff --git a/chrome/browser/ui/ash/multi_user/user_switch_util_unittest.cc b/chrome/browser/ui/ash/multi_user/user_switch_util_unittest.cc
index 6182167c8d953c502bdb84efb38c2f5de886fe95..f5905c5d999f8c2aa2f955013b3bfb9af1cd608d 100644
--- a/chrome/browser/ui/ash/multi_user/user_switch_util_unittest.cc
+++ b/chrome/browser/ui/ash/multi_user/user_switch_util_unittest.cc
@@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/browser/ui/ash/multi_user/user_switch_util.h"
+
#include "ash/common/system/chromeos/screen_security/screen_tray_item.h"
#include "ash/common/system/tray/system_tray.h"
#include "ash/common/wm/overview/window_selector_controller.h"
-#include "ash/common/wm_shell.h"
+#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#include "base/run_loop.h"
#include "base/threading/thread_task_runner_handle.h"
-#include "chrome/browser/ui/ash/multi_user/user_switch_util.h"
#include "chrome/browser/ui/simple_message_box.h"
#include "ui/aura/window.h"
@@ -82,19 +83,11 @@ class TrySwitchingUserTest : public ash::test::AshTestBase {
void SwitchCallback() { switch_callback_hit_count_++; }
// Methods needed to test with overview mode.
- const WindowSelectorController* window_selector_controller() const {
- return WmShell::Get()->window_selector_controller();
- }
- WindowSelectorController* window_selector_controller() {
- return const_cast<WindowSelectorController*>(
- const_cast<const TrySwitchingUserTest*>(this)
- ->window_selector_controller());
- }
bool ToggleOverview() {
- return window_selector_controller()->ToggleOverview();
+ return Shell::Get()->window_selector_controller()->ToggleOverview();
}
bool IsSelecting() const {
- return window_selector_controller()->IsSelecting();
+ return Shell::Get()->window_selector_controller()->IsSelecting();
}
// Various counter accessors.
« no previous file with comments | « chrome/browser/ui/ash/multi_user/user_switch_util.cc ('k') | chrome/browser/ui/ash/system_tray_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698