DescriptionConsistently 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 #
Messages
Total messages: 19 (0 generated)
|