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

Unified Diff: ash/wm/maximize_mode/maximize_mode_controller.cc

Issue 437213005: Fixing problem with the maximize mode where MultiProfile windows do not get properly handled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 6 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
Index: ash/wm/maximize_mode/maximize_mode_controller.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_controller.cc b/ash/wm/maximize_mode/maximize_mode_controller.cc
index 7259e0e06eec27a667d1bf5a76acf197293bb921..add7fb3f7b51cca458d161971186cc0d1e33a9b2 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller.cc
+++ b/ash/wm/maximize_mode/maximize_mode_controller.cc
@@ -220,6 +220,11 @@ bool MaximizeModeController::IsMaximizeModeWindowManagerEnabled() const {
return maximize_mode_window_manager_.get() != NULL;
}
+void MaximizeModeController::AddWindow(aura::Window* window) {
+ if (IsMaximizeModeWindowManagerEnabled())
+ maximize_mode_window_manager_->AddWindow(window);
+}
+
void MaximizeModeController::Shutdown() {
maximize_mode_window_manager_.reset();
Shell::GetInstance()->OnMaximizeModeEnded();
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_controller.h ('k') | ash/wm/maximize_mode/maximize_mode_window_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698