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

Issue 8774029: Delete desktop/shell instance correctly when chrome is shutting down (Closed)

Created:
9 years ago by oshima
Modified:
9 years ago
CC:
chromium-reviews, dhollowa+watch_chromium.org, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Delete desktop/shell instance correctly upon shutdown. * Moved parts->PostMainMessageLoopRun call from PostDestroyThreads to the right place (PostMainMessageLoopRun() method) * Renamed Shell::DeleteInstanceForTesting to DeleteInstance as this is no longer for testing. BUG=106070 TEST=browser_tests on aura will not crash as described in the bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112836

Patch Set 1 #

Patch Set 2 : " #

Total comments: 4

Patch Set 3 : close windows before observers are destroyed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -15 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chrome_browser_main_extra_parts_aura.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_extra_parts_aura.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/desktop_host_linux.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/aura_shell/shelf_layout_controller.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura_shell/shell.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura_shell/shell.cc View 1 2 3 chunks +16 lines, -5 lines 0 comments Download
M ui/aura_shell/test/aura_shell_test_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
oshima
stevenjb -> chrome/browser/ ben -> ui/
9 years ago (2011-12-02 00:45:27 UTC) #1
stevenjb
http://codereview.chromium.org/8774029/diff/1001/chrome/browser/chrome_browser_main_extra_parts_aura.cc File chrome/browser/chrome_browser_main_extra_parts_aura.cc (right): http://codereview.chromium.org/8774029/diff/1001/chrome/browser/chrome_browser_main_extra_parts_aura.cc#newcode34 chrome/browser/chrome_browser_main_extra_parts_aura.cc:34: aura::Desktop::DeleteInstance(); Since aura::Shell::Init() calls aura::Desktop::GetInstance(), shouldn't aura::Desktop::GetInstance() call aura::Desktop::DeleteInstance()? ...
9 years ago (2011-12-02 01:30:54 UTC) #2
oshima
http://codereview.chromium.org/8774029/diff/1001/chrome/browser/chrome_browser_main_extra_parts_aura.cc File chrome/browser/chrome_browser_main_extra_parts_aura.cc (right): http://codereview.chromium.org/8774029/diff/1001/chrome/browser/chrome_browser_main_extra_parts_aura.cc#newcode34 chrome/browser/chrome_browser_main_extra_parts_aura.cc:34: aura::Desktop::DeleteInstance(); On 2011/12/02 01:30:55, Steven Bennetts wrote: > Since ...
9 years ago (2011-12-02 01:45:43 UTC) #3
oshima
Uploaded new patch, which closes windows before shell's window observers are destroyed. It looks a ...
9 years ago (2011-12-02 16:35:19 UTC) #4
stevenjb
The ChromeBrowserMainParts changes look fine by me, but I am not sure I entirely follow ...
9 years ago (2011-12-02 20:10:27 UTC) #5
Ben Goodger (Google)
lgtm
9 years ago (2011-12-02 20:25:35 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/8774029/4007
9 years ago (2011-12-02 20:36:03 UTC) #7
commit-bot: I haz the power
9 years ago (2011-12-03 00:24:26 UTC) #8
The commit queue went berserk retrying too often for a
seemingly flaky test. Builder is win_rel, revision is 112804, job name
was 8774029-4007 (retry) (retry) (previous was lost) (previous was lost).

Powered by Google App Engine
This is Rietveld 408576698