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

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

Issue 2628933003: Revert of Reland: chromeos: Fix shelf appearing at login screen under mash (Closed)
Patch Set: Created 3 years, 11 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 4553737db8cad7343f9a080af054049faa21ac48..efb63e62029ca4a6e8d1c12a9dc2a890ff032130 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
@@ -42,7 +42,6 @@
#include "chrome/browser/ui/ash/launcher/launcher_application_menu_item_model.h"
#include "chrome/browser/ui/ash/launcher/launcher_context_menu.h"
#include "chrome/browser/ui/ash/launcher/launcher_item_controller.h"
-#include "chrome/browser/ui/ash/session_controller_client.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_finder.h"
@@ -193,11 +192,7 @@
~LauncherPlatformAppBrowserTest() override {}
void RunTestOnMainThreadLoop() override {
- // Ensure ash starts the session and creates the shelf and controller.
- SessionControllerClient::FlushForTesting();
-
controller_ = GetChromeLauncherControllerImpl();
- ASSERT_TRUE(controller_);
return extensions::PlatformAppBrowserTest::RunTestOnMainThreadLoop();
}
@@ -264,14 +259,10 @@
~ShelfAppBrowserTest() override {}
void RunTestOnMainThreadLoop() override {
- // Ensure ash starts the session and creates the shelf and controller.
- SessionControllerClient::FlushForTesting();
-
shelf_ =
ash::WmShelf::ForWindow(ash::WmShell::Get()->GetPrimaryRootWindow());
model_ = ash::WmShell::Get()->shelf_model();
controller_ = GetChromeLauncherControllerImpl();
- ASSERT_TRUE(controller_);
return ExtensionBrowserTest::RunTestOnMainThreadLoop();
}
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.cc ('k') | chrome/browser/ui/ash/multi_user/multi_user_window_manager_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698