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

Issue 3198007: BackgroudModeManager now listens for APP_TERMINATING and shuts down background (Closed)

Created:
10 years, 4 months ago by Andrew T Wilson (Slow)
Modified:
9 years, 7 months ago
Reviewers:
Dmitry Titov
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

BackgroudModeManager now listens for APP_TERMINATING and shuts down background mode in all cases (now uses same code path for --keep-alive-for-test and for background apps) - this is necessary because ExtensionsService does not generate EXTENSION_UNLOADED notifications when the app shuts down as I thought. With this fix, the extension API tests for background apps pass without disabling background mode. BUG=53021 TEST=extension API tests pass now with background mode enabled. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57266

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -15 lines) Patch
M chrome/browser/background_mode_manager.cc View 3 chunks +17 lines, -13 lines 0 comments Download
M chrome/browser/extensions/app_background_page_apitest.cc View 1 chunk +0 lines, -2 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
Andrew T Wilson (Slow)
Dmitry, this is a fix for that KeepAlive bug you encountered when writing up your ...
10 years, 4 months ago (2010-08-22 17:30:16 UTC) #1
Dmitry Titov
LGTM with one note.
10 years, 4 months ago (2010-08-24 19:33:09 UTC) #2
Dmitry Titov
http://codereview.chromium.org/3198007/diff/1/3 File chrome/browser/extensions/app_background_page_apitest.cc (left): http://codereview.chromium.org/3198007/diff/1/3#oldcode17 chrome/browser/extensions/app_background_page_apitest.cc:17: command_line->AppendSwitch(switches::kDisableBackgroundMode); should we just remove kDisableBackgroundMode now that it ...
10 years, 4 months ago (2010-08-24 19:33:18 UTC) #3
Andrew T Wilson (Slow)
10 years, 4 months ago (2010-08-24 19:35:45 UTC) #4
On 2010/08/24 19:33:18, Dmitry Titov wrote:
> http://codereview.chromium.org/3198007/diff/1/3
> File chrome/browser/extensions/app_background_page_apitest.cc (left):
> 
> http://codereview.chromium.org/3198007/diff/1/3#oldcode17
> chrome/browser/extensions/app_background_page_apitest.cc:17:
> command_line->AppendSwitch(switches::kDisableBackgroundMode);
> should we just remove kDisableBackgroundMode now that it is not used anymore?

I want to leave kDisableBackgroundMode in to allow diagnosing bugs in background
mode (kind of like how we used to allow disabling workers). I'll take this out
post-M7.

Powered by Google App Engine
This is Rietveld 408576698