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

Issue 9150008: Introduce background.scripts feature for extension manifests. (Closed)

Created:
8 years, 11 months ago by Aaron Boodman
Modified:
8 years, 11 months ago
CC:
chromium-reviews, robertshield, kkania, mihaip+watch_chromium.org
Visibility:
Public.

Description

Introduce background.scripts feature for extension manifests. This optimizes for the common use case where background pages just include a reference to one or more script files and no additional HTML. BUG=107791 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117110

Patch Set 1 #

Total comments: 4

Patch Set 2 : forgot apitest cc file #

Patch Set 3 : such a pickypants #

Patch Set 4 : picky #

Total comments: 1

Patch Set 5 : require that background scripts exist #

Patch Set 6 : ready to land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -38 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/background/background_contents_service.cc View 6 chunks +8 lines, -9 lines 0 comments Download
A chrome/browser/extensions/background_scripts_apitest.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_event_router.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_process_manager.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_protocols.cc View 3 chunks +44 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/network_delay_listener.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 chunks +14 lines, -1 line 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 chunks +44 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_constants.h View 1 2 3 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_constants.cc View 1 2 3 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_file_util.cc View 1 2 3 4 1 chunk +16 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_file_util_unittest.cc View 1 2 3 4 5 3 chunks +58 lines, -7 lines 0 comments Download
M chrome/common/extensions/extension_manifests_unittest.cc View 1 2 3 2 chunks +26 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/api_test/alert/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
D chrome/test/data/extensions/api_test/alert/test.html View 1 chunk +0 lines, -6 lines 0 comments Download
A chrome/test/data/extensions/api_test/background_scripts/a.js View 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/background_scripts/b.js View 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/background_scripts/manifest.json View 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/background_scripts.json View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Aaron Boodman
8 years, 11 months ago (2012-01-09 20:14:47 UTC) #1
Aaron Boodman
I will also update the docs in a separate change. http://codereview.chromium.org/9150008/diff/1/chrome/test/data/extensions/api_test/alert/manifest.json File chrome/test/data/extensions/api_test/alert/manifest.json (right): http://codereview.chromium.org/9150008/diff/1/chrome/test/data/extensions/api_test/alert/manifest.json#newcode7 ...
8 years, 11 months ago (2012-01-09 20:15:48 UTC) #2
Matt Perry
lgtm http://codereview.chromium.org/9150008/diff/1/chrome/browser/extensions/extension_protocols.cc File chrome/browser/extensions/extension_protocols.cc (right): http://codereview.chromium.org/9150008/diff/1/chrome/browser/extensions/extension_protocols.cc#newcode105 chrome/browser/extensions/extension_protocols.cc:105: class GeneratedBackgroundPageJob : public net::URLRequestSimpleJob { Please add ...
8 years, 11 months ago (2012-01-09 21:12:17 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aa@chromium.org/9150008/10001
8 years, 11 months ago (2012-01-10 01:25:26 UTC) #4
Mihai Parparita -not on Chrome
http://codereview.chromium.org/9150008/diff/10001/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/9150008/diff/10001/chrome/common/extensions/extension.cc#newcode1222 chrome/common/extensions/extension.cc:1222: background_scripts_.push_back(script); Drive by: Do you want to validate that ...
8 years, 11 months ago (2012-01-10 01:51:37 UTC) #5
Mihai Parparita -not on Chrome
Actually, I'm not sure if CSP will prevent that script from being loaded, since this ...
8 years, 11 months ago (2012-01-10 01:53:37 UTC) #6
commit-bot: I haz the power
List of reviewers changed. mihaip@chromium.org did a drive-by without LGTM'ing!
8 years, 11 months ago (2012-01-10 02:38:34 UTC) #7
Aaron Boodman
Good call. Fixed.
8 years, 11 months ago (2012-01-10 20:11:51 UTC) #8
Mihai Parparita -not on Chrome
LGTM
8 years, 11 months ago (2012-01-10 20:15:04 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aa@chromium.org/9150008/4007
8 years, 11 months ago (2012-01-10 21:10:59 UTC) #10
commit-bot: I haz the power
8 years, 11 months ago (2012-01-10 23:25:35 UTC) #11
Change committed as 117110

Powered by Google App Engine
This is Rietveld 408576698