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

Issue 11275069: Perform install tasks for newly installed or upgraded component apps/extensions. (Closed)

Created:
8 years, 1 month ago by tapted
Modified:
8 years ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, benwells, jeremya, Gaurav
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Perform install tasks for newly installed or upgraded component apps/extensions. This ensures, e.g., that background pages for component extensions are run and that their event listeners are registered appropriately. The change also saves manifest information into profile preferences for component applications so that the version can be tracked, which was not previously done. BUG=157717 TEST=browser_test PlatformAppBrowserTest.ComponentAppBackgroundPages Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170137

Patch Set 1 : end to end testing #

Patch Set 2 : revert nits from code that isn't changing, for clarity #

Patch Set 3 : various fixes #

Patch Set 4 : various fixes #

Total comments: 2

Patch Set 5 : do not include default component extensions with background pages when running tests #

Patch Set 6 : git try wants me to rebase #

Patch Set 7 : should make chromeos go green #

Total comments: 16

Patch Set 8 : review comments, new CheckExtensionInstalledObserver #

Total comments: 2

Patch Set 9 : rebase required due to r169770 (extension_service.cc) and r169694 (component_loader.cc) #

Total comments: 1

Patch Set 10 : rebase and move v2 component app added in r169911 (and r170087) into background section in componen… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -49 lines) Patch
M chrome/browser/extensions/component_loader.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/component_loader.cc View 1 2 3 4 5 6 7 8 9 5 chunks +54 lines, -36 lines 0 comments Download
M chrome/browser/extensions/component_loader_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 8 9 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 2 chunks +35 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_url_rewrite_browsertest.cc View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/platform_app_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +127 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_service.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_service.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor_browsertest.cc View 1 chunk +15 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/component/main.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/component/main.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/component/manifest.json View 1 chunk +12 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/component/test.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
tapted
@aa I hope I can impose on you for a your take on this, and ...
8 years, 1 month ago (2012-11-20 11:26:28 UTC) #1
tapted
Forgot a note I meant to add in extension_service.cc (below). Also, there are some tryjobs ...
8 years, 1 month ago (2012-11-20 23:31:34 UTC) #2
Aaron Boodman
.redirect("yoz")
8 years ago (2012-11-26 22:14:25 UTC) #3
Yoyo Zhou
https://codereview.chromium.org/11275069/diff/10051/chrome/browser/extensions/component_loader.cc File chrome/browser/extensions/component_loader.cc (right): https://codereview.chromium.org/11275069/diff/10051/chrome/browser/extensions/component_loader.cc#newcode394 chrome/browser/extensions/component_loader.cc:394: if (!enable_background_extenstions_during_testing && typo: extensions https://codereview.chromium.org/11275069/diff/10051/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): ...
8 years ago (2012-11-27 23:54:18 UTC) #4
tapted
Thank you for the review! PTAL https://codereview.chromium.org/11275069/diff/10051/chrome/browser/extensions/component_loader.cc File chrome/browser/extensions/component_loader.cc (right): https://codereview.chromium.org/11275069/diff/10051/chrome/browser/extensions/component_loader.cc#newcode394 chrome/browser/extensions/component_loader.cc:394: if (!enable_background_extenstions_during_testing && ...
8 years ago (2012-11-28 06:21:13 UTC) #5
tapted
Just a heads-up/note: there was a slightly non-trivial rebase (isolated in patchset 9) required due ...
8 years ago (2012-11-28 07:30:35 UTC) #6
Yoyo Zhou
LGTM, makes sense. Thanks for doing the rebase in a separate patchset; it makes it ...
8 years ago (2012-11-28 22:02:30 UTC) #7
tapted
+sky for an OWNERS review in c/b/ui/views (or any additional warmly-welcomed feedback ;). link to ...
8 years ago (2012-11-28 23:46:24 UTC) #8
sky
LGTM
8 years ago (2012-11-29 01:50:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/11275069/13041
8 years ago (2012-11-29 04:38:59 UTC) #10
commit-bot: I haz the power
8 years ago (2012-11-29 06:05:41 UTC) #11
Message was sent while issue was closed.
Change committed as 170137

Powered by Google App Engine
This is Rietveld 408576698