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

Unified Diff: ash/display/display_manager.cc

Issue 2254603002: Temporary fix to return only the active displays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Temporary fix to return only the active displays. Created 4 years, 4 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/display/display_manager.h ('k') | ash/display/screen_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager.cc
diff --git a/ash/display/display_manager.cc b/ash/display/display_manager.cc
index 05c0f137716a6da27e6eccfef307deb038fca8e9..c223f497e28ebcb39eeb46da977f4b7012fac028 100644
--- a/ash/display/display_manager.cc
+++ b/ash/display/display_manager.cc
@@ -785,11 +785,13 @@ void DisplayManager::UpdateDisplaysWith(
}
active_display_list_ = new_displays;
+ active_only_display_list_ = active_display_list_;
RefreshFontParams();
base::AutoReset<bool> resetter(&change_display_upon_host_resize_, false);
int active_display_list_size = active_display_list_.size();
+ is_updating_display_list_ = true;
// Temporarily add displays to be removed because display object
// being removed are accessed during shutting down the root.
active_display_list_.insert(active_display_list_.end(),
@@ -802,6 +804,7 @@ void DisplayManager::UpdateDisplaysWith(
screen_->NotifyDisplayAdded(active_display_list_[index]);
active_display_list_.resize(active_display_list_size);
+ is_updating_display_list_ = false;
bool notify_primary_change =
delegate_ ? old_primary.id() != screen_->GetPrimaryDisplay().id() : false;
« no previous file with comments | « ash/display/display_manager.h ('k') | ash/display/screen_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698