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

Unified Diff: chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_browsertest.cc

Issue 2734933004: ash: Use SessionController instead of SessionStateDelegate (Closed)
Patch Set: rebase to get WorkspaceLayoutManagerSoloTest change 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/chromeos/login/users/wallpaper/wallpaper_manager_browsertest.cc
diff --git a/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_browsertest.cc b/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_browsertest.cc
index 2609a93b842bc4f1db0d4629999f5e8d0890902f..f549c17bc2f14770159ea90eadf0b1a287529624 100644
--- a/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_browsertest.cc
+++ b/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_browsertest.cc
@@ -20,6 +20,7 @@
#include "base/time/time.h"
#include "base/values.h"
#include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.h"
+#include "chrome/browser/ui/ash/session_controller_client.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/testing_browser_process.h"
@@ -115,9 +116,9 @@ class WallpaperManagerBrowserTest : public InProcessBrowserTest {
// Logs in |account_id|.
void LogIn(const AccountId& account_id, const std::string& user_id_hash) {
SessionManager::Get()->CreateSession(account_id, user_id_hash);
- // Adding a secondary display creates a shelf on that display, which
- // assumes a shelf on the primary display if the user was logged in.
- ash::WmShell::Get()->CreateShelfView();
+ SessionManager::Get()->SessionStarted();
+ // Flush to ensure the created session and ACTIVE state reaches ash.
+ SessionControllerClient::FlushForTesting();
WaitAsyncWallpaperLoadStarted();
}

Powered by Google App Engine
This is Rietveld 408576698