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

Issue 7012031: Fix a couple of crashes related to app-crashed balloon. (Closed)

Created:
9 years, 7 months ago by sadrul
Modified:
9 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fix a couple of crashes related to app-crashed balloon. Close the crash-notification balloon if background contents is restarted for an app. And check for valid values when loading background contents. BUG=82492, 82505 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85724

Patch Set 1 #

Total comments: 1

Patch Set 2 : ;; #

Total comments: 2

Patch Set 3 : race #

Patch Set 4 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -5 lines) Patch
M chrome/browser/background_contents_service.cc View 1 2 3 5 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
sadrul
Currently navigating to a sad tab does not trigger a reload. That is done in: ...
9 years, 7 months ago (2011-05-13 05:04:43 UTC) #1
Andrew T Wilson (Slow)
LGTM, with a couple of caveats - I think the ideal behavior would be to ...
9 years, 7 months ago (2011-05-14 01:01:37 UTC) #2
sadrul
Turns out the change I had before is just not necessary at all! The crash ...
9 years, 7 months ago (2011-05-15 06:25:45 UTC) #3
Andrew T Wilson (Slow)
http://codereview.chromium.org/7012031/diff/4001/chrome/browser/background_contents_service.cc File chrome/browser/background_contents_service.cc (right): http://codereview.chromium.org/7012031/diff/4001/chrome/browser/background_contents_service.cc#newcode68 chrome/browser/background_contents_service.cc:68: BackgroundContentsServiceFactory::GetForProfile(profile_)-> So, it seems like there's still a race ...
9 years, 7 months ago (2011-05-15 16:58:08 UTC) #4
sadrul
http://codereview.chromium.org/7012031/diff/4001/chrome/browser/background_contents_service.cc File chrome/browser/background_contents_service.cc (right): http://codereview.chromium.org/7012031/diff/4001/chrome/browser/background_contents_service.cc#newcode68 chrome/browser/background_contents_service.cc:68: BackgroundContentsServiceFactory::GetForProfile(profile_)-> On 2011/05/15 16:58:08, Andrew T Wilson wrote: > ...
9 years, 7 months ago (2011-05-15 17:56:54 UTC) #5
Andrew T Wilson (Slow)
9 years, 7 months ago (2011-05-18 01:12:02 UTC) #6
On 2011/05/15 17:56:54, sadrul wrote:
>
http://codereview.chromium.org/7012031/diff/4001/chrome/browser/background_co...
> File chrome/browser/background_contents_service.cc (right):
> 
>
http://codereview.chromium.org/7012031/diff/4001/chrome/browser/background_co...
> chrome/browser/background_contents_service.cc:68:
> BackgroundContentsServiceFactory::GetForProfile(profile_)->
> On 2011/05/15 16:58:08, Andrew T Wilson wrote:
> > So, it seems like there's still a race condition that could lead to a crash
> > (user reloads page and clicks notification simultaneously). To be safe we
> should
> > check to make sure there's no BG contents here before calling
> > LoadBackgroundContentsForExtension() (or put that check in
> > LoadBackgroundContentsForExtension()).
> 
> Done (added the check in here).

LGTM

Powered by Google App Engine
This is Rietveld 408576698