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

Issue 1062053002: Fix docked browser window sometimes appears onscreen after restart (Closed)

Created:
5 years, 8 months ago by shrike
Modified:
5 years, 8 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix docked browser window sometimes appears onscreen after restart (Continuing from original cl https://codereview.chromium.org/1055893003 .) Change IsMaximized() to return false if the window is in the dock, and a unit test to make sure this is always the case. It turns out -isZoomed can sometimes return YES for a docked window, which sometimes results in the window becoming undocked on the next restart. Please read the long entry in the bug report for a complete explanation of how the change fixes the problem. BUG=452976 Committed: https://crrev.com/900997341ee5c7076b345ce35c6644226a507f6d Cr-Commit-Position: refs/heads/master@{#324079}

Patch Set 1 #

Patch Set 2 : Revise unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -1 line) Patch
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa_unittest.mm View 1 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
shrike
Hello Avi, The 10.6 bot didn't like the previous version of my unit test - ...
5 years, 8 months ago (2015-04-07 18:03:18 UTC) #2
Avi (use Gerrit)
S LGTM
5 years, 8 months ago (2015-04-07 18:12:54 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062053002/20001
5 years, 8 months ago (2015-04-07 18:48:35 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-07 18:55:06 UTC) #6
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 18:56:38 UTC) #7
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/900997341ee5c7076b345ce35c6644226a507f6d
Cr-Commit-Position: refs/heads/master@{#324079}

Powered by Google App Engine
This is Rietveld 408576698