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

Unified Diff: ash/shelf/shelf_widget_unittest.cc

Issue 2389403003: chromeos: Don't explicitly set system tray visibility during initialization (Closed)
Patch Set: unused var on windows Created 4 years, 2 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/shelf/shelf_widget_unittest.cc
diff --git a/ash/shelf/shelf_widget_unittest.cc b/ash/shelf/shelf_widget_unittest.cc
index 9d8631965babac143bb366c0dd1fa8174b290d99..ab4f1a2a02bc98fc340fabe99a44d9726d066e5f 100644
--- a/ash/shelf/shelf_widget_unittest.cc
+++ b/ash/shelf/shelf_widget_unittest.cc
@@ -191,8 +191,9 @@ TEST_P(ShelfWidgetTest, ShelfInitiallySizedAfterLogin) {
ASSERT_TRUE(shelf_widget1);
ASSERT_TRUE(shelf_widget2);
+ // Simulate login.
SetUserLoggedIn(true);
- Shell::GetInstance()->CreateShelf();
+ SetSessionStarted(true);
// The shelf view and status area horizontally fill the shelf widget.
const int status_width1 =
« no previous file with comments | « ash/common/system/tray/system_tray_delegate.cc ('k') | chrome/browser/ui/ash/system_tray_delegate_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698