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

Unified Diff: chrome/browser/ui/views/frame/browser_frame_ash.cc

Issue 2652043004: Remove persisted docked windows (Closed)
Patch Set: Update commit message. Created 3 years, 11 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: chrome/browser/ui/views/frame/browser_frame_ash.cc
diff --git a/chrome/browser/ui/views/frame/browser_frame_ash.cc b/chrome/browser/ui/views/frame/browser_frame_ash.cc
index 58ba903a21437fdd05e6bbeb293e43f57604ee7f..860f317855a01fd895d963fb151f52e37ef3e484 100644
--- a/chrome/browser/ui/views/frame/browser_frame_ash.cc
+++ b/chrome/browser/ui/views/frame/browser_frame_ash.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/frame/browser_frame_ash.h"
+#include "ash/common/ash_switches.h"
#include "ash/common/wm/window_state.h"
#include "ash/common/wm/window_state_delegate.h"
#include "ash/shell.h"
@@ -118,7 +119,9 @@ void BrowserFrameAsh::GetWindowPlacement(
*show_state = ui::SHOW_STATE_NORMAL;
}
- if (ash::wm::GetWindowState(GetNativeWindow())->IsDocked()) {
+ // TODO(afakhry): Remove in M58.
+ if (ash::switches::DockedWindowsEnabled() &&
+ ash::wm::GetWindowState(GetNativeWindow())->IsDocked()) {
if (browser_view_->browser()->is_app()) {
// Only web app windows (not tabbed browser windows) persist docked state.
*show_state = ui::SHOW_STATE_DOCKED;

Powered by Google App Engine
This is Rietveld 408576698