commit | cbb10e171054a20ade042fa738eea27b1b28b9ef | [log] [tgz] |
---|---|---|
author | Sorin Jianu <[email protected]> | Tue Jan 23 18:01:44 2018 |
committer | Commit Bot <[email protected]> | Tue Jan 23 18:01:44 2018 |
tree | 8d7319b391d5dd4067308cdee92fecd7a761c047 | |
parent | 7fc0c9593c072895c1c01d63c890d5af4d6d2cb1 [diff] [blame] |
In update_client, emit different events in the noupdate and update error cases. Bug: 804472 Change-Id: I0425bcea8cd82386dbcd0fe63fa696e60a468af2 Reviewed-on: https://chromium-review.googlesource.com/879165 Reviewed-by: Bernhard Bauer <[email protected]> Reviewed-by: Joshua Pawlicki <[email protected]> Commit-Queue: Sorin Jianu <[email protected]> Cr-Commit-Position: refs/heads/master@{#531276}
diff --git a/components/component_updater/component_updater_service.cc b/components/component_updater/component_updater_service.cc index 54d0161..b1304c5d 100644 --- a/components/component_updater/component_updater_service.cc +++ b/components/component_updater/component_updater_service.cc
@@ -400,7 +400,8 @@ // Unblock all throttles for the component. if (event == Observer::Events::COMPONENT_UPDATED || - event == Observer::Events::COMPONENT_NOT_UPDATED) { + event == Observer::Events::COMPONENT_NOT_UPDATED || + event == Observer::Events::COMPONENT_UPDATE_ERROR) { auto callbacks = ready_callbacks_.equal_range(id); for (auto it = callbacks.first; it != callbacks.second; ++it) { std::move(it->second).Run();