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

Issue 7466017: Fixes crash introduced by fix for 11229. The fix for 11229 made it so (Closed)

Created:
9 years, 5 months ago by sky
Modified:
9 years, 5 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, dhollowa
Visibility:
Public.

Description

Fixes crash introduced by fix for 11229. The fix for 11229 made it so we might pass a bounds and maximized request when creating a browser window. If for whatever reason that size isn't valid (say doesn't fit on the monitor), then CreateWindow calls WM_POSCHANGED. The current code didn't handle this too well because not all the state has been set up yet. BUG=89843 TEST=none R=pkasting@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=93319

Patch Set 1 #

Total comments: 1

Patch Set 2 : Incorporate review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M chrome/browser/ui/views/frame/browser_view.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M views/widget/widget.h View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
sky
9 years, 5 months ago (2011-07-20 22:57:19 UTC) #1
Peter Kasting
9 years, 5 months ago (2011-07-20 23:09:40 UTC) #2
LGTM, but we might want comments in these spots saying when/why they can be
NULL, if that's not blindingly obvious to a future code spelunker

http://codereview.chromium.org/7466017/diff/1/views/widget/widget.h
File views/widget/widget.h (right):

http://codereview.chromium.org/7466017/diff/1/views/widget/widget.h#newcode485
views/widget/widget.h:485: return non_client_view() ?
non_client_view()->client_view() : NULL;
Nit: Might as well use |non_client_view_| directly instead of the accessor

Powered by Google App Engine
This is Rietveld 408576698