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

Issue 18006003: Consistently use notifications from component updater w/ on-demand PNaCl. (Closed)

Created:
7 years, 5 months ago by jvoung (off chromium)
Modified:
7 years, 4 months ago
CC:
chromium-reviews, waffles
Visibility:
Public.

Description

Consistently use notifications from component updater w/ on-demand PNaCl. Once an "update ready" notification is sent, the PNaCl installer will get to see if the install is successful or not. At that point, we can stop watching for the "updater is sleeping" notification. Previously, we would need to be careful about whether the PNaCl installer gets through to notify its callbacks first, or if the "updater is sleeping" happens first. Now there is more of a defined sequence of events. Move to the new style of using the observer, and off of using the notification registrar. Also, get rid of the CancelCallback within the PNaCl installer, since it's not used at all, and simplify it so that only one callback is active at once, since only one install request will ever actually go through. Move RequestFirstInstall out of the global namespace while we are at it... BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215732

Patch Set 1 #

Patch Set 2 : clang-format #

Patch Set 3 : Add basic test for IsUpdate... #

Patch Set 4 : make virtual #

Patch Set 5 : typedefs #

Patch Set 6 : cleanup test a bit #

Total comments: 8

Patch Set 7 : review #

Total comments: 10

Patch Set 8 : sorins review #

Total comments: 4

Patch Set 9 : const #

Patch Set 10 : rebase and do other cleanup #

Patch Set 11 : more cleanup #

Total comments: 5

Patch Set 12 : callback.h #

Total comments: 6

Patch Set 13 : sorin review 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -110 lines) Patch
M chrome/browser/component_updater/pnacl/pnacl_component_installer.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +15 lines, -24 lines 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 4 chunks +45 lines, -56 lines 0 comments Download
M chrome/browser/component_updater/pnacl/pnacl_updater_observer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -9 lines 0 comments Download
M chrome/browser/component_updater/pnacl/pnacl_updater_observer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +37 lines, -19 lines 0 comments Download
M chrome/browser/nacl_host/nacl_browser_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
jvoung (off chromium)
Hi Carlos, in the review https://codereview.chromium.org/17001003/ you brought up a good point that it was ...
7 years, 5 months ago (2013-06-27 16:23:28 UTC) #1
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/18006003/diff/39001/chrome/browser/component_updater/component_updater_service.h File chrome/browser/component_updater/component_updater_service.h (right): https://codereview.chromium.org/18006003/diff/39001/chrome/browser/component_updater/component_updater_service.h#newcode175 chrome/browser/component_updater/component_updater_service.h:175: typedef std::string UpdateSource; not big fan of this typedef ...
7 years, 5 months ago (2013-07-01 18:30:22 UTC) #2
jvoung (off chromium)
Thanks for the review! https://codereview.chromium.org/18006003/diff/39001/chrome/browser/component_updater/component_updater_service.h File chrome/browser/component_updater/component_updater_service.h (right): https://codereview.chromium.org/18006003/diff/39001/chrome/browser/component_updater/component_updater_service.h#newcode175 chrome/browser/component_updater/component_updater_service.h:175: typedef std::string UpdateSource; On 2013/07/01 ...
7 years, 5 months ago (2013-07-02 01:04:26 UTC) #3
cpu_(ooo_6.6-7.5)
lgtm But give a chance for sorin to look at it. I guess that new ...
7 years, 5 months ago (2013-07-03 18:04:53 UTC) #4
Sorin Jianu
Thank you! https://codereview.chromium.org/18006003/diff/56001/chrome/browser/component_updater/component_updater_service.h File chrome/browser/component_updater/component_updater_service.h (right): https://codereview.chromium.org/18006003/diff/56001/chrome/browser/component_updater/component_updater_service.h#newcode167 chrome/browser/component_updater/component_updater_service.h:167: const CrxComponent& component); This static member seems ...
7 years, 5 months ago (2013-07-03 21:17:32 UTC) #5
jvoung (off chromium)
thanks https://codereview.chromium.org/18006003/diff/56001/chrome/browser/component_updater/component_updater_service.h File chrome/browser/component_updater/component_updater_service.h (right): https://codereview.chromium.org/18006003/diff/56001/chrome/browser/component_updater/component_updater_service.h#newcode167 chrome/browser/component_updater/component_updater_service.h:167: const CrxComponent& component); On 2013/07/03 21:17:32, Sorin Jianu ...
7 years, 5 months ago (2013-07-03 22:51:50 UTC) #6
Sorin Jianu
Thank you Jan! https://codereview.chromium.org/18006003/diff/72001/chrome/browser/component_updater/component_updater_service.cc File chrome/browser/component_updater/component_updater_service.cc (right): https://codereview.chromium.org/18006003/diff/72001/chrome/browser/component_updater/component_updater_service.cc#newcode990 chrome/browser/component_updater/component_updater_service.cc:990: bool CrxUpdateService::IsUpdateNotificationForComponent( What is strange about ...
7 years, 5 months ago (2013-07-03 23:10:04 UTC) #7
jvoung (off chromium)
https://codereview.chromium.org/18006003/diff/72001/chrome/browser/component_updater/component_updater_service.cc File chrome/browser/component_updater/component_updater_service.cc (right): https://codereview.chromium.org/18006003/diff/72001/chrome/browser/component_updater/component_updater_service.cc#newcode990 chrome/browser/component_updater/component_updater_service.cc:990: bool CrxUpdateService::IsUpdateNotificationForComponent( On 2013/07/03 23:10:04, Sorin Jianu wrote: > ...
7 years, 5 months ago (2013-07-04 01:11:04 UTC) #8
cpu_(ooo_6.6-7.5)
We are thinking (well Soring is doing the code) of adding observers to the component ...
7 years, 5 months ago (2013-07-08 21:45:36 UTC) #9
jvoung (off chromium)
On 2013/07/08 21:45:36, cpu wrote: > We are thinking (well Soring is doing the code) ...
7 years, 5 months ago (2013-07-08 22:46:25 UTC) #10
sorin
I am changing the code to use a generic observer, which can be extended to ...
7 years, 5 months ago (2013-07-09 05:32:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/18006003/83001
7 years, 4 months ago (2013-08-01 20:27:29 UTC) #12
commit-bot: I haz the power
Failed to apply patch for chrome/browser/component_updater/test/component_updater_service_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-08-01 20:27:39 UTC) #13
jvoung (off chromium)
Cool, looks like the observer framework has landed now, so I will try to rebase ...
7 years, 4 months ago (2013-08-02 18:21:00 UTC) #14
jvoung (off chromium)
Ok, I've updated the CL to use the new observers. https://codereview.chromium.org/18006003/diff/97001/chrome/browser/component_updater/pnacl/pnacl_component_installer.h File chrome/browser/component_updater/pnacl/pnacl_component_installer.h (left): https://codereview.chromium.org/18006003/diff/97001/chrome/browser/component_updater/pnacl/pnacl_component_installer.h#oldcode99 ...
7 years, 4 months ago (2013-08-02 21:17:59 UTC) #15
Sorin Jianu
lgtm There are some issues with this code and I suggest the following, with the ...
7 years, 4 months ago (2013-08-05 19:24:58 UTC) #16
jvoung (off chromium)
https://codereview.chromium.org/18006003/diff/97001/chrome/browser/component_updater/pnacl/pnacl_component_installer.cc File chrome/browser/component_updater/pnacl/pnacl_component_installer.cc (right): https://codereview.chromium.org/18006003/diff/97001/chrome/browser/component_updater/pnacl/pnacl_component_installer.cc#newcode474 chrome/browser/component_updater/pnacl/pnacl_component_installer.cc:474: void PnaclComponentInstaller::RequestFirstInstall( On 2013/08/05 19:24:58, Sorin Jianu wrote: > ...
7 years, 4 months ago (2013-08-05 20:36:02 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/18006003/114001
7 years, 4 months ago (2013-08-05 21:23:01 UTC) #18
commit-bot: I haz the power
7 years, 4 months ago (2013-08-05 23:58:50 UTC) #19
Message was sent while issue was closed.
Change committed as 215732

Powered by Google App Engine
This is Rietveld 408576698