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

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

Issue 2700523004: Remove docked windows entirely in M59. (Closed)
Patch Set: Rebase Created 3 years, 10 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 d40bb82282e9f3b4c9b1d0174d45492466a8b64a..8cee83aa5de4de4fc5ef79687a7a5a0059141436 100644
--- a/chrome/browser/ui/views/frame/browser_frame_ash.cc
+++ b/chrome/browser/ui/views/frame/browser_frame_ash.cc
@@ -118,22 +118,6 @@ void BrowserFrameAsh::GetWindowPlacement(
*show_state != ui::SHOW_STATE_MINIMIZED) {
*show_state = ui::SHOW_STATE_NORMAL;
}
-
- // 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;
- } else {
- // Restore original restore bounds for tabbed browser windows ignoring
- // the docked origin.
- gfx::Rect* restore_bounds = GetWidget()->GetNativeWindow()->GetProperty(
- aura::client::kRestoreBoundsKey);
- if (restore_bounds)
- *bounds = *restore_bounds;
- }
- }
}
bool BrowserFrameAsh::PreHandleKeyboardEvent(

Powered by Google App Engine
This is Rietveld 408576698