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

Unified Diff: chrome/browser/component_updater/supervised_user_whitelist_installer.cc

Issue 2261533003: Provide a callback for Component Updater OnDemand calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/component_updater/supervised_user_whitelist_installer.cc
diff --git a/chrome/browser/component_updater/supervised_user_whitelist_installer.cc b/chrome/browser/component_updater/supervised_user_whitelist_installer.cc
index ef24cd25d1b07b876c31ea0f6964c52e7761c766..879773d8157ee4ec789bf1c2ca34a666bbf37b10 100644
--- a/chrome/browser/component_updater/supervised_user_whitelist_installer.cc
+++ b/chrome/browser/component_updater/supervised_user_whitelist_installer.cc
@@ -642,8 +642,7 @@ std::vector<uint8_t> SupervisedUserWhitelistInstaller::GetHashFromCrxId(
void SupervisedUserWhitelistInstaller::TriggerComponentUpdate(
OnDemandUpdater* updater,
const std::string& crx_id) {
- const bool result = updater->OnDemandUpdate(crx_id);
- DCHECK(result);
+ updater->OnDemandUpdate(crx_id, ComponentUpdateService::CompletionCallback());
Bernhard Bauer 2016/08/19 04:13:05 Could we DCHECK the result in a callback here? If
Sorin Jianu 2016/08/19 04:23:36 I will try to add the callback. I am not concerned
Sorin Jianu 2016/08/19 04:43:36 On a second thought, I prefer solving this in a fu
}
} // namespace component_updater

Powered by Google App Engine
This is Rietveld 408576698