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

Issue 1370753003: Fix incorrect window size on session restore. (Closed)

Created:
5 years, 2 months ago by shrike
Modified:
5 years, 2 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 incorrect window size on session restore. Under the right conditions, a window that is restored during a browser restart and never moved during that session will have an empty bounds in session restore during the next browser restart. As a result that window will be assigned the default browser window bounds, which could be much different (in the steps in the referenced bug the restored window jumps from its original size to the full size of the screen). Normally whenever a window's size is changed, even during window restoration, its size is sent to session restore, but at start-up the window may not be fully initialized with the session service and so session restore ignores the update. The solution is to ensure that the window always updates its size with session restore when it becomes main (it was almost always doing that previously; the case where it wasn't is what led to the bug). BUG=536280 Committed: https://crrev.com/61d7597133612988ae9980482da6199c7ad23e8a Cr-Commit-Position: refs/heads/master@{#355803}

Patch Set 1 #

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

Messages

Total messages: 13 (4 generated)
shrike
This is a similar one-line fix to another issue - PTAL.
5 years, 2 months ago (2015-10-05 16:58:39 UTC) #2
shrike
rohitrao@ - PTAL at this one line bug fix so that I can land it.
5 years, 2 months ago (2015-10-20 21:58:46 UTC) #4
shrike
Hi avi@ - PTAL
5 years, 2 months ago (2015-10-23 03:02:00 UTC) #6
Avi (use Gerrit)
I don't mind this fix; lgtm. I was reading the bug, and you say that ...
5 years, 2 months ago (2015-10-23 04:42:46 UTC) #7
shrike
On 2015/10/23 04:42:46, Avi wrote: > I don't mind this fix; lgtm. I was reading ...
5 years, 2 months ago (2015-10-23 06:00:30 UTC) #8
Avi (use Gerrit)
On 2015/10/23 06:00:30, shrike wrote: > On 2015/10/23 04:42:46, Avi wrote: > > I don't ...
5 years, 2 months ago (2015-10-23 13:39:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1370753003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1370753003/1
5 years, 2 months ago (2015-10-23 16:09:20 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 2 months ago (2015-10-23 16:43:32 UTC) #12
commit-bot: I haz the power
5 years, 2 months ago (2015-10-23 16:44:26 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/61d7597133612988ae9980482da6199c7ad23e8a
Cr-Commit-Position: refs/heads/master@{#355803}

Powered by Google App Engine
This is Rietveld 408576698