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

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

Issue 2652043004: Remove persisted docked windows (Closed)
Patch Set: varkha's comments 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
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.cc ('k') | chrome/browser/ui/window_sizer/window_sizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1ec42a01eaea303828f0f3383f11516c73c9523c 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 Docked Windows 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;
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.cc ('k') | chrome/browser/ui/window_sizer/window_sizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698