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

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: 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 36f6f2514ca137a01e7595f34a8e5176994367ae..774d68fbf5c55a8b9019b945a64661f9b77511d1 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller.cc
+++ b/ash/wm/maximize_mode/maximize_mode_controller.cc
@@ -196,6 +196,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();

Powered by Google App Engine
This is Rietveld 408576698