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

Issue 10914076: ExtensionService: Delay non-critical IO until after startup has finished. (Closed)

Created:
8 years, 3 months ago by jeremy
Modified:
8 years ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

ExtensionService: Delay non-critical IO until after startup has finished. Delay the calls to CheckForExternalUpdates() and GarbageCollectExtensions() until onload fires for the first frame to reduce IO at startup. For newly created profiles we don't delay CheckForExternalUpdates(). BUG=136623 TEST=All unit tests should pass, external extension updates should continue to work. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170960

Patch Set 1 #

Patch Set 2 : Improve comments. #

Patch Set 3 : Address review comments #

Patch Set 4 : Update patch #

Patch Set 5 : Fix ExtensionServiceTest.UpdateOnStartup #

Patch Set 6 : All unit tests now pass (hopefuly) #

Total comments: 1

Patch Set 7 : ResetExternalUpdateCheckGuard() -> ResetExternalUpdateCheckGuardForTests() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -10 lines) Patch
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 4 chunks +33 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 18 chunks +30 lines, -4 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
jeremy
Hi Antony, This CL implements the change we discussed. CheckForExternalUpdates() will notably be called twice ...
8 years, 3 months ago (2012-09-04 14:34:32 UTC) #1
asargent_no_longer_on_chrome
Overall approach seems fine, so LGTM. I don't think it's a huge deal to call ...
8 years, 3 months ago (2012-09-04 16:45:42 UTC) #2
asargent_no_longer_on_chrome
Sorry, I just thought of a potential problem with the approach: external extensions can often ...
8 years, 3 months ago (2012-09-04 16:48:40 UTC) #3
jeremy
Yes, I've just double-checked, the error pages do indeed trigger NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME .
8 years, 3 months ago (2012-09-05 08:33:05 UTC) #4
asargent_no_longer_on_chrome
On 2012/09/05 08:33:05, jeremy wrote: > Yes, I've just double-checked, the error pages do indeed ...
8 years, 3 months ago (2012-09-05 17:09:05 UTC) #5
jeremy
Thanks! All review comments addressed, all unit tests pass.
8 years, 3 months ago (2012-09-06 09:03:49 UTC) #6
asargent_no_longer_on_chrome
LGTM
8 years, 3 months ago (2012-09-06 22:58:15 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/10914076/1002
8 years, 3 months ago (2012-09-08 20:02:09 UTC) #8
commit-bot: I haz the power
Try job failure for 10914076-1002 (retry) on mac_rel for step "sync_integration_tests". It's a second try, ...
8 years, 3 months ago (2012-09-08 22:05:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/10914076/1002
8 years, 3 months ago (2012-09-09 08:02:10 UTC) #10
commit-bot: I haz the power
Try job failure for 10914076-1002 (retry) (retry) on linux_rel for step "sync_integration_tests". It's a second ...
8 years, 3 months ago (2012-09-09 11:18:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/10914076/25001
8 years, 1 month ago (2012-11-13 15:08:44 UTC) #12
commit-bot: I haz the power
Retried try job too often for step(s) sync_integration_tests
8 years, 1 month ago (2012-11-13 16:44:52 UTC) #13
akalin
I'll be trying to repro the integration test failure.
8 years, 1 month ago (2012-11-14 20:14:18 UTC) #14
akalin
On 2012/11/14 20:14:18, akalin wrote: > I'll be trying to repro the integration test failure. ...
8 years, 1 month ago (2012-11-14 23:07:47 UTC) #15
akalin
On 2012/11/14 23:07:47, akalin wrote: > On 2012/11/14 20:14:18, akalin wrote: > > I'll be ...
8 years, 1 month ago (2012-11-15 05:23:12 UTC) #16
akalin
bug: https://code.google.com/p/chromium/issues/detail?id=161203
8 years, 1 month ago (2012-11-15 05:32:48 UTC) #17
akalin
On 2012/11/15 05:32:48, akalin wrote: > bug: https://code.google.com/p/chromium/issues/detail?id=161203 Landed my patch in r168142 -- see ...
8 years, 1 month ago (2012-11-16 18:04:59 UTC) #18
akalin
On 2012/11/16 18:04:59, akalin wrote: > On 2012/11/15 05:32:48, akalin wrote: > > bug: https://code.google.com/p/chromium/issues/detail?id=161203 ...
8 years, 1 month ago (2012-11-17 01:25:01 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/10914076/25001
8 years ago (2012-11-28 19:31:59 UTC) #20
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) unit_tests
8 years ago (2012-11-28 20:23:53 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/10914076/25001
8 years ago (2012-11-28 20:53:23 UTC) #22
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests
8 years ago (2012-11-28 21:46:41 UTC) #23
akalin
On 2012/11/28 21:46:41, I haz the power (commit-bot) wrote: > Retried try job too often ...
8 years ago (2012-11-28 21:56:03 UTC) #24
jeremy
Antony: I've changed the approach slightly to not fire fake notifications in the updated test ...
8 years ago (2012-12-03 10:49:14 UTC) #25
asargent_no_longer_on_chrome
LGTM https://chromiumcodereview.appspot.com/10914076/diff/40003/chrome/browser/extensions/extension_service.h File chrome/browser/extensions/extension_service.h (right): https://chromiumcodereview.appspot.com/10914076/diff/40003/chrome/browser/extensions/extension_service.h#newcode386 chrome/browser/extensions/extension_service.h:386: void ResetExternalUpdateCheckGuard() { optional suggestion: consider adding "ForTests" ...
8 years ago (2012-12-03 18:13:47 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/10914076/40003
8 years ago (2012-12-03 18:45:35 UTC) #27
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
8 years ago (2012-12-03 19:26:55 UTC) #28
akalin
On 2012/12/03 19:26:55, I haz the power (commit-bot) wrote: > Step "update" is always a ...
8 years ago (2012-12-03 20:06:26 UTC) #29
akalin
Okay, my third attempt landed as 170880. This time I think it's sticking. :)
8 years ago (2012-12-04 06:33:39 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/10914076/32005
8 years ago (2012-12-04 11:16:33 UTC) #31
commit-bot: I haz the power
8 years ago (2012-12-04 15:33:58 UTC) #32
Message was sent while issue was closed.
Change committed as 170960

Powered by Google App Engine
This is Rietveld 408576698