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

Issue 10298002: No longer start BG mode until a BackgroundContents is loaded (Closed)

Created:
8 years, 7 months ago by Andrew T Wilson (Slow)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip+watch_chromium.org
Visibility:
Public.

Description

No longer start BG mode until a BackgroundContents is loaded BUG=120448 TEST=Install hosted app, ensure it does not kick off background mode until it opens a background contents via JS. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135264

Patch Set 1 #

Patch Set 2 : Fixed tests. #

Total comments: 18

Patch Set 3 : Fixed up unit tests to not be racey. #

Total comments: 6

Patch Set 4 : Review feedback. #

Patch Set 5 : Prospective fix for cros test failures. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+440 lines, -37 lines) Patch
M chrome/browser/background/background_application_list_model.h View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/background/background_application_list_model.cc View 1 2 9 chunks +54 lines, -9 lines 0 comments Download
M chrome/browser/background/background_application_list_model_unittest.cc View 1 2 8 chunks +32 lines, -17 lines 0 comments Download
M chrome/browser/background/background_contents_service.h View 1 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/background/background_contents_service.cc View 1 2 6 chunks +33 lines, -4 lines 0 comments Download
M chrome/browser/background/background_mode_manager.h View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/background/background_mode_manager.cc View 1 2 3 4 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/extensions/app_background_page_apitest.cc View 1 2 3 4 7 chunks +87 lines, -0 lines 0 comments Download
M chrome/common/chrome_notification_types.h View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_background_page/basic_close/content_script.js View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_background_page/basic_close/manifest.json View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_background_page/basic_close/test.html View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_background_page/basic_close/test.js View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_background_page/basic_open/content_script.js View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_background_page/basic_open/manifest.json View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_background_page/basic_open/test.html View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_background_page/basic_open/test.js View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_background_page/common/close.html View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/app_background_page/common/common.js View 1 2 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Andrew T Wilson (Slow)
Mihai, PTAL. I've tested this manually and most of the tests are working, except for ...
8 years, 7 months ago (2012-05-02 01:30:13 UTC) #1
Andrew T Wilson (Slow)
Erik, it looks like Mihai is OOO. Can you take a look at this, or ...
8 years, 7 months ago (2012-05-03 00:09:25 UTC) #2
Mihai Parparita -not on Chrome
Actually, I'm back from leave. I'll take a look at this now. Mihai On Wed, ...
8 years, 7 months ago (2012-05-03 00:14:49 UTC) #3
Andrew T Wilson (Slow)
Awesome, thanks - you're the ideal reviewer since you have more experience with this part ...
8 years, 7 months ago (2012-05-03 00:17:07 UTC) #4
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10298002/diff/7001/chrome/browser/background/background_application_list_model.cc File chrome/browser/background/background_application_list_model.cc (right): http://codereview.chromium.org/10298002/diff/7001/chrome/browser/background/background_application_list_model.cc#newcode273 chrome/browser/background/background_application_list_model.cc:273: // Extensions with background permission are always treated as ...
8 years, 7 months ago (2012-05-03 00:54:11 UTC) #5
Mihai Parparita -not on Chrome
BTW, thanks for taking this on. It ended up being quite clean to implement the ...
8 years, 7 months ago (2012-05-03 00:56:38 UTC) #6
Andrew T Wilson (Slow)
PTAL. I addressed your feedback, and also made some changes to the tests to make ...
8 years, 7 months ago (2012-05-03 07:42:56 UTC) #7
Mihai Parparita -not on Chrome
LGTM http://codereview.chromium.org/10298002/diff/18001/chrome/browser/background/background_mode_manager.cc File chrome/browser/background/background_mode_manager.cc (right): http://codereview.chromium.org/10298002/diff/18001/chrome/browser/background/background_mode_manager.cc#newcode546 chrome/browser/background/background_mode_manager.cc:546: bool new_value = true; Why not use &in_background_mode_? ...
8 years, 7 months ago (2012-05-03 19:32:35 UTC) #8
Andrew T Wilson (Slow)
http://codereview.chromium.org/10298002/diff/18001/chrome/browser/background/background_mode_manager.cc File chrome/browser/background/background_mode_manager.cc (right): http://codereview.chromium.org/10298002/diff/18001/chrome/browser/background/background_mode_manager.cc#newcode546 chrome/browser/background/background_mode_manager.cc:546: bool new_value = true; On 2012/05/03 19:32:35, Mihai Parparita ...
8 years, 7 months ago (2012-05-03 21:36:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/10298002/22001
8 years, 7 months ago (2012-05-03 23:23:23 UTC) #10
commit-bot: I haz the power
8 years, 7 months ago (2012-05-04 01:17:30 UTC) #11
Change committed as 135264

Powered by Google App Engine
This is Rietveld 408576698