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

Unified Diff: ash/test/ash_test_helper.cc

Issue 2784173002: Changes how window is updated when display changes in mash (Closed)
Patch Set: cleanup 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: ash/test/ash_test_helper.cc
diff --git a/ash/test/ash_test_helper.cc b/ash/test/ash_test_helper.cc
index 338357ef7a41d39b12eb8602fb4b3f5753b638e4..9378bc41dcb33a4119f21d7de77c0d040aadff6c 100644
--- a/ash/test/ash_test_helper.cc
+++ b/ash/test/ash_test_helper.cc
@@ -368,14 +368,7 @@ void AshTestHelper::UpdateDisplay(RootWindowController* root_window_controller,
updated_display.set_bounds(bounds);
updated_display.UpdateWorkAreaFromInsets(work_area_insets);
updated_display.set_device_scale_factor(display_info.device_scale_factor());
- root_window_controller->GetWindow()->SetBounds(gfx::Rect(bounds.size()));
- ScreenMus* screen = window_manager_app_->window_manager()->screen_.get();
- const bool is_primary =
- screen->display_list().FindDisplayById(updated_display.id()) ==
- screen->display_list().GetPrimaryDisplayIterator();
- screen->display_list().UpdateDisplay(
- updated_display, is_primary ? display::DisplayList::Type::PRIMARY
- : display::DisplayList::Type::NOT_PRIMARY);
+ window_manager_app_->window_manager()->OnWmDisplayModified(updated_display);
}
std::vector<RootWindowController*> AshTestHelper::GetRootsOrderedByDisplayId() {

Powered by Google App Engine
This is Rietveld 408576698