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

Issue 7739034: Save window placement for App windows. (Closed)

Created:
9 years, 3 months ago by Satoshi.Matsuzaki
Modified:
9 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

Save window placement for App windows. Avoid App window growth on every window close-open cycle. (Also fixes initial placement of App windows) BUG=93996, 82690 TEST=Start chrome.exe with "--app=http://www.google.com/". Window should be placed properly every time. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102108

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 chunks +3 lines, -2 lines 1 comment Download

Messages

Total messages: 18 (0 generated)
Satoshi.Matsuzaki
Hello, could you please review this? These issues seem to have been regressed at r84303.
9 years, 3 months ago (2011-09-06 16:02:37 UTC) #1
apavlov
LGTM
9 years, 3 months ago (2011-09-06 16:10:27 UTC) #2
Satoshi.Matsuzaki
@jianli: Is this OK for you too? If you don't have time, please let me ...
9 years, 3 months ago (2011-09-14 15:24:27 UTC) #3
Satoshi.Matsuzaki
Hello Ben, colud you please review/approve this?
9 years, 3 months ago (2011-09-18 03:27:15 UTC) #4
tfarina
http://codereview.chromium.org/7739034/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): http://codereview.chromium.org/7739034/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode1640 chrome/browser/ui/views/frame/browser_view.cc:1640: && (browser_->ShouldSaveWindowPlacement() || browser_->is_app())) { the && should be ...
9 years, 3 months ago (2011-09-18 13:22:11 UTC) #5
Satoshi.Matsuzaki
Thanks for review. > http://codereview.chromium.org/7739034/diff/1/chrome/browser/ui/views/frame/browser_view.cc > File chrome/browser/ui/views/frame/browser_view.cc (right): > > http://codereview.chromium.org/7739034/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode1640 > chrome/browser/ui/views/frame/browser_view.cc:1640: && ...
9 years, 3 months ago (2011-09-18 18:44:37 UTC) #6
tfarina
On 2011/09/14 15:24:27, Satoshi.Matsuzaki wrote: > P.S. > I'm not a committer, so I couldn't ...
9 years, 3 months ago (2011-09-19 19:07:07 UTC) #7
Ben Goodger (Google)
lgtm
9 years, 3 months ago (2011-09-19 20:28:01 UTC) #8
CWD
On 2011/09/19 19:07:07, tfarina wrote: > On 2011/09/14 15:24:27, Satoshi.Matsuzaki wrote: > > P.S. > ...
9 years, 3 months ago (2011-09-21 12:23:17 UTC) #9
Satoshi.Matsuzaki
On 2011/09/19 19:07:07, tfarina wrote: > I've sent it to the trybots, you should get ...
9 years, 3 months ago (2011-09-21 13:33:48 UTC) #10
tfarina
On 2011/09/21 13:33:48, Satoshi.Matsuzaki wrote: > On 2011/09/19 19:07:07, tfarina wrote: > > I've sent ...
9 years, 3 months ago (2011-09-21 13:37:34 UTC) #11
Satoshi.Matsuzaki
On 2011/09/21 13:37:34, tfarina wrote: > Did you try checking the commit checkbox, to land ...
9 years, 3 months ago (2011-09-21 14:01:23 UTC) #12
commit-bot: I haz the power
Change committed as 102108
9 years, 3 months ago (2011-09-21 15:50:20 UTC) #13
Satoshi.Matsuzaki
Thanks everyone (especially to tfarina) for your help.
9 years, 3 months ago (2011-09-21 20:36:04 UTC) #14
frame
9 years, 1 month ago (2011-11-04 09:20:52 UTC) #15
frame
The patch doesn't seem to restore the original functionality. When you open a popup window ...
9 years, 1 month ago (2011-11-04 09:25:27 UTC) #16
Ben Goodger (Google)
http://codereview.chromium.org/7739034/diff/8001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): http://codereview.chromium.org/7739034/diff/8001/chrome/browser/ui/views/frame/browser_view.cc#newcode1640 chrome/browser/ui/views/frame/browser_view.cc:1640: (browser_->ShouldSaveWindowPlacement() || browser_->is_app())) { BTW, upon further consideration I ...
9 years, 1 month ago (2011-11-07 20:47:21 UTC) #17
Satoshi.Matsuzaki
9 years, 1 month ago (2011-11-08 19:15:25 UTC) #18
On 2011/11/07 20:47:21, Ben Goodger (Google) wrote:
> BTW, upon further consideration I realize this is not the right place to have
> this check. It's not really view-state, and as such should not live in
> BrowserView, rather it should live in Browser::ShouldSaveWindowPlacement. Can
> you fix this? Thanks :-)

I agree with your idea. Thanks for pointing out.
Filed http://crbug.com/103403 for tracking purpose.
I just started investigation, so anyone please feel free to take it.

Powered by Google App Engine
This is Rietveld 408576698