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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc

Issue 2169533002: mash: Migrate shelf app list button to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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/launcher/chrome_launcher_controller_impl_browsertest.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc
index 8838e34dfcfc2a1062362a321a6cb735cef700e0..31ffc23a7bba473f37978cbdcdff1b405ef45fa4 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc
@@ -7,10 +7,11 @@
#include <stddef.h>
#include "ash/common/ash_switches.h"
+#include "ash/common/shelf/app_list_button.h"
#include "ash/common/shelf/shelf_constants.h"
#include "ash/common/shelf/shelf_model.h"
#include "ash/common/wm/window_state.h"
-#include "ash/shelf/app_list_button.h"
+#include "ash/common/wm_shell.h"
#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_button.h"
#include "ash/shelf/shelf_util.h"
@@ -271,7 +272,7 @@ class ShelfAppBrowserTest : public ExtensionBrowserTest {
void RunTestOnMainThreadLoop() override {
shelf_ = ash::Shelf::ForPrimaryDisplay();
- model_ = ash::test::ShellTestApi(ash::Shell::GetInstance()).shelf_model();
+ model_ = ash::WmShell::Get()->shelf_model();
controller_ = GetChromeLauncherControllerImpl();
return ExtensionBrowserTest::RunTestOnMainThreadLoop();
}
@@ -1534,7 +1535,7 @@ IN_PROC_BROWSER_TEST_F(LauncherPlatformAppBrowserTest, WindowAttentionStatus) {
IN_PROC_BROWSER_TEST_F(LauncherPlatformAppBrowserTest,
ShowInShelfWindowsWithWindowKeySet) {
- ash::ShelfModel* shelf_model = ash::Shell::GetInstance()->shelf_model();
+ ash::ShelfModel* shelf_model = ash::WmShell::Get()->shelf_model();
// Add a window with shelf True, close it
int item_count = shelf_model->item_count();
@@ -2269,7 +2270,7 @@ IN_PROC_BROWSER_TEST_F(ShelfAppBrowserTest, V1AppNavigation) {
IN_PROC_BROWSER_TEST_F(ShelfAppBrowserTest, SettingsWindow) {
chrome::SettingsWindowManager* settings_manager =
chrome::SettingsWindowManager::GetInstance();
- ash::ShelfModel* shelf_model = ash::Shell::GetInstance()->shelf_model();
+ ash::ShelfModel* shelf_model = ash::WmShell::Get()->shelf_model();
// Get the number of items in the shelf and browser menu.
int item_count = shelf_model->item_count();

Powered by Google App Engine
This is Rietveld 408576698