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

Issue 12054003: Add an API to component_updater that asks to do an update check "now". (Closed)

Created:
7 years, 11 months ago by jvoung (off chromium)
Modified:
7 years, 10 months ago
Reviewers:
cpu_(ooo_6.6-7.5), jam
CC:
chromium-reviews
Visibility:
Public.

Description

Add an API to component_updater that asks to do an update check "now". With this API, users of component_updater can trigger an update or install when deemed important.  E.g., if a component is not yet installed, but is about to be used. There is not a guarantee that the item will actually be updated. There is only a good chance. It can still be preempted by other items that may have an update available as well, or if multiple components use this interface one will trump the others. Use this to kick off a check of PNaCl if flag enabled, but not yet installed. Sort of related to: BUG=107438 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182399

Patch Set 1 #

Total comments: 1

Patch Set 2 : avoid having two timers set, show use with pnacl #

Patch Set 3 : Do not use NextCheckDelay for non-running timer case (sideeffects). #

Total comments: 3

Patch Set 4 : move to schedule step, todo set up notification #

Patch Set 5 : add notifications #

Patch Set 6 : cleanup #

Patch Set 7 : fix segfault #

Patch Set 8 : revert some stuff for other CL #

Patch Set 9 : cleanup #

Total comments: 13

Patch Set 10 : add on-demand-delay check #

Patch Set 11 : check recheck time #

Patch Set 12 : remove guarantees and notifications #

Patch Set 13 : small cleanup #

Patch Set 14 : fix test iterator #

Total comments: 2

Patch Set 15 : move commandline check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -26 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/component_updater/component_updater_configurator.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/component_updater/component_updater_service.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/component_updater_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +78 lines, -5 lines 0 comments Download
M chrome/browser/component_updater/pnacl/pnacl_component_installer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/component_updater/pnacl/pnacl_component_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +34 lines, -8 lines 0 comments Download
M chrome/browser/component_updater/test/component_updater_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +167 lines, -7 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
jvoung (off chromium)
https://codereview.chromium.org/12054003/diff/1/chrome/browser/component_updater/component_updater_service.h File chrome/browser/component_updater/component_updater_service.h (right): https://codereview.chromium.org/12054003/diff/1/chrome/browser/component_updater/component_updater_service.h#newcode143 chrome/browser/component_updater/component_updater_service.h:143: virtual Status PingUpdateCheck(const CrxComponent& component) = 0; Would it ...
7 years, 11 months ago (2013-01-25 17:48:30 UTC) #1
cpu_(ooo_6.6-7.5)
one issue that worries me here is that there could be a manifest fetch in ...
7 years, 10 months ago (2013-01-30 01:57:48 UTC) #2
jvoung (off chromium)
https://codereview.chromium.org/12054003/diff/23001/chrome/browser/component_updater/component_updater_service.cc File chrome/browser/component_updater/component_updater_service.cc (right): https://codereview.chromium.org/12054003/diff/23001/chrome/browser/component_updater/component_updater_service.cc#newcode548 chrome/browser/component_updater/component_updater_service.cc:548: } Good point about having fetches or installs in ...
7 years, 10 months ago (2013-01-30 02:20:21 UTC) #3
cpu_(ooo_6.6-7.5)
explore this idea: Instead of PingUpdateCheck calling ProcessWorkItems, simply have the function re-schedule the timer ...
7 years, 10 months ago (2013-01-30 21:13:05 UTC) #4
jvoung (off chromium)
Something like this? Is it okay to add more notifications for handling spinners or other ...
7 years, 10 months ago (2013-01-31 19:51:43 UTC) #5
jvoung (off chromium)
cleaned up a little bit more, ptal
7 years, 10 months ago (2013-02-04 17:27:45 UTC) #6
jvoung (off chromium)
On 2013/02/04 17:27:45, jvoung (cr) wrote: > cleaned up a little bit more, ptal Here ...
7 years, 10 months ago (2013-02-04 23:53:02 UTC) #7
cpu_(ooo_6.6-7.5)
yeah this is more in line to what I want. https://codereview.chromium.org/12054003/diff/35001/chrome/browser/component_updater/component_updater_service.cc File chrome/browser/component_updater/component_updater_service.cc (right): https://codereview.chromium.org/12054003/diff/35001/chrome/browser/component_updater/component_updater_service.cc#newcode459 ...
7 years, 10 months ago (2013-02-05 00:04:47 UTC) #8
cpu_(ooo_6.6-7.5)
To be more precise, I think we should speed up the timer as you have ...
7 years, 10 months ago (2013-02-05 00:15:50 UTC) #9
jvoung (off chromium)
https://codereview.chromium.org/12054003/diff/35001/chrome/browser/component_updater/component_updater_service.cc File chrome/browser/component_updater/component_updater_service.cc (right): https://codereview.chromium.org/12054003/diff/35001/chrome/browser/component_updater/component_updater_service.cc#newcode481 chrome/browser/component_updater/component_updater_service.cc:481: chrome::NOTIFICATION_COMPONENT_UPDATE_COMPLETE, On 2013/02/05 00:04:47, cpu wrote: > not sure ...
7 years, 10 months ago (2013-02-05 00:17:56 UTC) #10
jvoung (off chromium)
On 2013/02/05 00:15:50, cpu wrote: > To be more precise, I think we should speed ...
7 years, 10 months ago (2013-02-05 00:54:15 UTC) #11
jvoung (off chromium)
On 2013/02/05 00:54:15, jvoung (cr) wrote: > On 2013/02/05 00:15:50, cpu wrote: > > To ...
7 years, 10 months ago (2013-02-05 17:06:18 UTC) #12
jvoung (off chromium)
On 2013/02/05 17:06:18, jvoung (cr) wrote: > On 2013/02/05 00:54:15, jvoung (cr) wrote: > > ...
7 years, 10 months ago (2013-02-06 19:54:23 UTC) #13
cpu_(ooo_6.6-7.5)
the delay unit should be in seconds. https://codereview.chromium.org/12054003/diff/35001/chrome/browser/component_updater/component_updater_service.cc File chrome/browser/component_updater/component_updater_service.cc (right): https://codereview.chromium.org/12054003/diff/35001/chrome/browser/component_updater/component_updater_service.cc#newcode481 chrome/browser/component_updater/component_updater_service.cc:481: chrome::NOTIFICATION_COMPONENT_UPDATE_COMPLETE, That ...
7 years, 10 months ago (2013-02-06 22:25:32 UTC) #14
jvoung (off chromium)
https://codereview.chromium.org/12054003/diff/35001/chrome/browser/component_updater/component_updater_service.cc File chrome/browser/component_updater/component_updater_service.cc (right): https://codereview.chromium.org/12054003/diff/35001/chrome/browser/component_updater/component_updater_service.cc#newcode481 chrome/browser/component_updater/component_updater_service.cc:481: chrome::NOTIFICATION_COMPONENT_UPDATE_COMPLETE, On 2013/02/06 22:25:32, cpu wrote: > That would ...
7 years, 10 months ago (2013-02-11 21:04:26 UTC) #15
jvoung (off chromium)
On 2013/02/04 23:53:02, jvoung (cr) wrote: > On 2013/02/04 17:27:45, jvoung (cr) wrote: > > ...
7 years, 10 months ago (2013-02-11 23:41:59 UTC) #16
cpu_(ooo_6.6-7.5)
lgtm
7 years, 10 months ago (2013-02-12 23:27:30 UTC) #17
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/12054003/diff/62001/chrome/browser/component_updater/pnacl/pnacl_component_installer.cc File chrome/browser/component_updater/pnacl/pnacl_component_installer.cc (right): https://codereview.chromium.org/12054003/diff/62001/chrome/browser/component_updater/pnacl/pnacl_component_installer.cc#newcode342 chrome/browser/component_updater/pnacl/pnacl_component_installer.cc:342: // we want it to be available "soon", so ...
7 years, 10 months ago (2013-02-12 23:34:26 UTC) #18
jvoung (off chromium)
https://codereview.chromium.org/12054003/diff/62001/chrome/browser/component_updater/pnacl/pnacl_component_installer.cc File chrome/browser/component_updater/pnacl/pnacl_component_installer.cc (right): https://codereview.chromium.org/12054003/diff/62001/chrome/browser/component_updater/pnacl/pnacl_component_installer.cc#newcode342 chrome/browser/component_updater/pnacl/pnacl_component_installer.cc:342: // we want it to be available "soon", so ...
7 years, 10 months ago (2013-02-12 23:38:37 UTC) #19
cpu_(ooo_6.6-7.5)
great, please move the check into the pnacl_component_installer.cc you can add that to this CL ...
7 years, 10 months ago (2013-02-13 00:03:24 UTC) #20
jvoung (off chromium)
On 2013/02/13 00:03:24, cpu wrote: > great, please move the check into the pnacl_component_installer.cc > ...
7 years, 10 months ago (2013-02-13 00:15:55 UTC) #21
cpu_(ooo_6.6-7.5)
lgtm
7 years, 10 months ago (2013-02-13 03:03:28 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/12054003/58005
7 years, 10 months ago (2013-02-13 16:03:28 UTC) #23
commit-bot: I haz the power
Presubmit check for 12054003-58005 failed and returned exit status 1. INFO:root:Found 7 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-13 16:03:35 UTC) #24
jvoung (off chromium)
On 2013/02/13 16:03:35, I haz the power (commit-bot) wrote: > Presubmit check for 12054003-58005 failed ...
7 years, 10 months ago (2013-02-13 16:06:10 UTC) #25
jam
On 2013/02/13 16:06:10, jvoung (cr) wrote: > On 2013/02/13 16:03:35, I haz the power (commit-bot) ...
7 years, 10 months ago (2013-02-13 22:06:05 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/12054003/58005
7 years, 10 months ago (2013-02-13 22:26:39 UTC) #27
commit-bot: I haz the power
7 years, 10 months ago (2013-02-13 23:20:53 UTC) #28
Retried try job too often on linux_chromeos for step(s) aura_unittests,
base_unittests, browser_tests, cacheinvalidation_unittests, check_deps,
chromeos_unittests, components_unittests, content_browsertests,
content_unittests, crypto_unittests, dbus_unittests, device_unittests,
gpu_unittests, interactive_ui_tests, ipc_tests, jingle_unittests,
media_unittests, net_unittests, ppapi_unittests, printing_unittests,
sandbox_linux_unittests, sql_unittests, sync_unit_tests, unit_tests
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chro...

Powered by Google App Engine
This is Rietveld 408576698