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

Unified Diff: ash/test/ash_test_helper.cc

Issue 2906873003: chromeos: turn on simplified display management for mash (Closed)
Patch Set: bug refs 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
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | chrome/browser/chromeos/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_test_helper.cc
diff --git a/ash/test/ash_test_helper.cc b/ash/test/ash_test_helper.cc
index e83f945b59dbd5a30d493fb64ba5bd94c584fd83..f506bfcc02521cafa8c4c18f07d30a8eb65562fb 100644
--- a/ash/test/ash_test_helper.cc
+++ b/ash/test/ash_test_helper.cc
@@ -188,7 +188,7 @@ void AshTestHelper::SetUp(bool start_session) {
session_controller_client_->CreatePredefinedUserSessions(1);
// TODO(sky): mash should use this too http://crbug.com/718860.
- if (config_ != Config::MASH) {
+ if (Shell::ShouldEnableSimplifiedDisplayManagement()) {
// Tests that change the display configuration generally don't care about
// the notifications and the popup UI can interfere with things like
// cursors.
@@ -313,7 +313,7 @@ void AshTestHelper::UpdateDisplayForMash(const std::string& display_spec) {
}
display::Display AshTestHelper::GetSecondaryDisplay() {
- if (config_ != Config::MASH)
+ if (Shell::ShouldEnableSimplifiedDisplayManagement())
return Shell::Get()->display_manager()->GetSecondaryDisplay();
std::vector<RootWindowController*> roots = GetRootsOrderedByDisplayId();
@@ -350,7 +350,7 @@ void AshTestHelper::CreateMashWindowManager() {
window_manager_app_->window_manager()->window_tree_client();
window_tree_client_private_ =
base::MakeUnique<aura::WindowTreeClientPrivate>(window_tree_client);
- if (config_ == Config::MUS) {
+ if (Shell::ShouldEnableSimplifiedDisplayManagement(config_)) {
window_tree_client_private_->CallOnConnect();
} else {
int next_x = 0;
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | chrome/browser/chromeos/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698