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

Unified Diff: chrome/browser/chromeos/shutdown_policy_browsertest.cc

Issue 2931643002: chromeos: Introduce ash::SystemTrayTestApi (Closed)
Patch Set: review comments Created 3 years, 6 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/shutdown_policy_browsertest.cc
diff --git a/chrome/browser/chromeos/shutdown_policy_browsertest.cc b/chrome/browser/chromeos/shutdown_policy_browsertest.cc
index 8d71ed0f194fd3573c09273bcfa840f4ad9b95d2..7a0fd698f2032fcf1768d71bcc22b2ae334e31b1 100644
--- a/chrome/browser/chromeos/shutdown_policy_browsertest.cc
+++ b/chrome/browser/chromeos/shutdown_policy_browsertest.cc
@@ -11,6 +11,7 @@
#include "ash/system/tiles/tiles_default_view.h"
#include "ash/system/tiles/tray_tiles.h"
#include "ash/system/tray/system_tray.h"
+#include "ash/system/tray/system_tray_test_api.h"
#include "base/command_line.h"
#include "base/location.h"
#include "base/macros.h"
@@ -157,7 +158,8 @@ class ShutdownPolicyInSessionTest
// Gets the shutdown button view.
const views::View* GetShutdownButton() {
ash::SystemTray* tray = ash::Shell::Get()->GetPrimarySystemTray();
- return tray->GetTrayTilesForTesting()
+ return ash::SystemTrayTestApi(tray)
+ .tray_tiles()
->GetDefaultViewForTesting()
->GetShutdownButtonViewForTest();
}

Powered by Google App Engine
This is Rietveld 408576698