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

Issue 154633003: Attempt at fixing possible shutdown crash (Closed)

Created:
6 years, 10 months ago by sky
Modified:
6 years, 10 months ago
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Attempt at fixing possible shutdown crash In some situations we can enter ~BrowserView with WebContents in the tab strip. There is code that attempted to deal with this, but by the time we get to ~BrowserView it's really too late to attempt to delete the WebContents. Reason being doing anything with the TabStrip more often than not results in calling back to the BrowserView and related classes. So, this shutdown really needs to be done earlier on. I'm moving it to when the frame is being destroyed, which means all view/layout classes are still valid. BUG=176556 TEST=covered by test now. R=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249083

Patch Set 1 #

Patch Set 2 : comments #

Total comments: 1

Patch Set 3 : OnWindowDestroying #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -10 lines) Patch
M chrome/browser/ui/views/frame/browser_frame_ash.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_ash.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/frame/browser_shutdown.h View 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/frame/browser_shutdown.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 2 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_browsertest.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/desktop_browser_frame_aura.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
sky
https://codereview.chromium.org/154633003/diff/20001/chrome/browser/ui/views/frame/browser_shutdown.h File chrome/browser/ui/views/frame/browser_shutdown.h (right): https://codereview.chromium.org/154633003/diff/20001/chrome/browser/ui/views/frame/browser_shutdown.h#newcode2 chrome/browser/ui/views/frame/browser_shutdown.h:2: // Use of this source code is governed by ...
6 years, 10 months ago (2014-02-05 00:01:05 UTC) #1
Ben Goodger (Google)
lgtm
6 years, 10 months ago (2014-02-05 00:45:54 UTC) #2
sky
The CQ bit was checked by sky@chromium.org
6 years, 10 months ago (2014-02-05 00:59:28 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/154633003/20001
6 years, 10 months ago (2014-02-05 03:53:13 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-05 08:38:52 UTC) #5
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=198329
6 years, 10 months ago (2014-02-05 08:38:52 UTC) #6
sky
The CQ bit was checked by sky@chromium.org
6 years, 10 months ago (2014-02-05 17:21:00 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/154633003/360001
6 years, 10 months ago (2014-02-05 17:23:59 UTC) #8
commit-bot: I haz the power
6 years, 10 months ago (2014-02-05 19:40:10 UTC) #9
Message was sent while issue was closed.
Change committed as 249083

Powered by Google App Engine
This is Rietveld 408576698