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

Issue 10952028: Fix crashers in GetPrimaryDisplay (Closed)

Created:
8 years, 3 months ago by oshima
Modified:
8 years, 3 months ago
Reviewers:
Daniel Erat, sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Fix crashers in GetPrimaryDisplay - Store primary display info in global object as this will be accessed after Shell is deleted during shutdown. - Don't touch UI/aura/ash in HandleAppExitingForPlatform if Shell is not initialized yet. This can happen when XIOError occurs during startup. BUG=150633, 150781 TEST=no crash report Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157671

Patch Set 1 : #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : return display by value #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -33 lines) Patch
M ash/display/display_controller.h View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M ash/display/display_controller.cc View 1 2 13 chunks +34 lines, -20 lines 0 comments Download
M ash/screen_ash.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/lifetime/application_lifetime_aura.cc View 1 1 chunk +11 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
oshima
8 years, 3 months ago (2012-09-19 17:34:18 UTC) #1
oshima
Dan, can you review this?
8 years, 3 months ago (2012-09-19 19:17:07 UTC) #2
Daniel Erat
lgtm http://codereview.chromium.org/10952028/diff/2001/ash/display/display_controller.h File ash/display/display_controller.h (right): http://codereview.chromium.org/10952028/diff/2001/ash/display/display_controller.h#newcode88 ash/display/display_controller.h:88: static const gfx::Display& GetPrimaryDisplay(); nit: returning a reference ...
8 years, 3 months ago (2012-09-19 20:47:33 UTC) #3
sky
LGTM
8 years, 3 months ago (2012-09-19 20:49:28 UTC) #4
oshima
http://codereview.chromium.org/10952028/diff/2001/ash/display/display_controller.h File ash/display/display_controller.h (right): http://codereview.chromium.org/10952028/diff/2001/ash/display/display_controller.h#newcode88 ash/display/display_controller.h:88: static const gfx::Display& GetPrimaryDisplay(); On 2012/09/19 20:47:33, Daniel Erat ...
8 years, 3 months ago (2012-09-19 21:21:28 UTC) #5
Daniel Erat
http://codereview.chromium.org/10952028/diff/2001/ash/display/display_controller.h File ash/display/display_controller.h (right): http://codereview.chromium.org/10952028/diff/2001/ash/display/display_controller.h#newcode88 ash/display/display_controller.h:88: static const gfx::Display& GetPrimaryDisplay(); On 2012/09/19 21:21:28, oshima wrote: ...
8 years, 3 months ago (2012-09-19 21:31:47 UTC) #6
oshima
On Wed, Sep 19, 2012 at 2:31 PM, <derat@chromium.org> wrote: > > http://codereview.chromium.**org/10952028/diff/2001/ash/** > display/display_controller.h<http://codereview.chromium.org/10952028/diff/2001/ash/display/display_controller.h> ...
8 years, 3 months ago (2012-09-19 21:43:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/10952028/3006
8 years, 3 months ago (2012-09-19 22:00:33 UTC) #8
commit-bot: I haz the power
8 years, 3 months ago (2012-09-20 00:48:57 UTC) #9
Change committed as 157671

Powered by Google App Engine
This is Rietveld 408576698