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

Issue 6297002: Preserve hosted apps' background contents across reload (Closed)

Created:
9 years, 11 months ago by The wrong rickcam account
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Use UnloadedExtensionInfo to keep hosted apps' background contents through a reload. BUG=63426 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71692

Patch Set 1 #

Patch Set 2 : Changed UnloadedExtensionInfo::Reason handling to do exhaustive case analysis. #

Patch Set 3 : Fixed spelling of "intentionally". #

Total comments: 2

Patch Set 4 : Addressed code review nit: background content --> BackgroundContents #

Total comments: 2

Patch Set 5 : Changed the default case so that it shuts down BackgroundContents. #

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

Messages

Total messages: 6 (0 generated)
Andrew T Wilson (Slow)
LGTM, pending tests. http://codereview.chromium.org/6297002/diff/4001/chrome/browser/background_contents_service.cc File chrome/browser/background_contents_service.cc (right): http://codereview.chromium.org/6297002/diff/4001/chrome/browser/background_contents_service.cc#newcode125 chrome/browser/background_contents_service.cc:125: // Leave background content in place ...
9 years, 11 months ago (2011-01-14 01:41:34 UTC) #1
The wrong rickcam account
Still pending testing. http://codereview.chromium.org/6297002/diff/4001/chrome/browser/background_contents_service.cc File chrome/browser/background_contents_service.cc (right): http://codereview.chromium.org/6297002/diff/4001/chrome/browser/background_contents_service.cc#newcode125 chrome/browser/background_contents_service.cc:125: // Leave background content in place ...
9 years, 11 months ago (2011-01-14 02:13:35 UTC) #2
The wrong rickcam account
Please take a look. Antony, Drew has given me an LGTM on this, but I'd ...
9 years, 11 months ago (2011-01-14 02:28:08 UTC) #3
asargent_no_longer_on_chrome
lgtm http://codereview.chromium.org/6297002/diff/9001/chrome/browser/background_contents_service.cc File chrome/browser/background_contents_service.cc (right): http://codereview.chromium.org/6297002/diff/9001/chrome/browser/background_contents_service.cc#newcode128 chrome/browser/background_contents_service.cc:128: NOTREACHED(); Would it make sense to shut down ...
9 years, 11 months ago (2011-01-15 00:09:53 UTC) #4
Andrew T Wilson (Slow)
Yeah, that's a great question. I suspect you're right, and we'd rather have the BC ...
9 years, 11 months ago (2011-01-15 00:37:43 UTC) #5
The wrong rickcam account
9 years, 11 months ago (2011-01-18 20:08:49 UTC) #6
I addressed the NOTREACHED case as suggested and will move forward to dcommit
this patch.

http://codereview.chromium.org/6297002/diff/9001/chrome/browser/background_co...
File chrome/browser/background_contents_service.cc (right):

http://codereview.chromium.org/6297002/diff/9001/chrome/browser/background_co...
chrome/browser/background_contents_service.cc:128: NOTREACHED();
On 2011/01/15 00:09:53, Antony Sargent wrote:
> Would it make sense to shut down the background contents in the default case
> here? I'm thinking of the possibility that in the future someone adds a new
> reason type to UnloadedExtensionInfo and forgets to update your code here.
I.e.
> in release builds, where the NOTREACHED won't fire, would we rather err on the
> side of the background contents getting shut down than left running? Your call
-
> just raising it for you to think about. 

Done.  I inserted a call to ShutdownAssociatedBackgroundContents immediately
following the NOTREACHED().

Powered by Google App Engine
This is Rietveld 408576698