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

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

Issue 2257363002: Define EnabledComponentUpdates group policy for the component updater. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@callback
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_unittest.cc
diff --git a/chrome/browser/component_updater/supervised_user_whitelist_installer_unittest.cc b/chrome/browser/component_updater/supervised_user_whitelist_installer_unittest.cc
index bd2b73d3bc1b501e939944deb2fbd53a920a7679..8c76c09ddfca4da5ce8f9b7dd5efe8ee103ce9bc 100644
--- a/chrome/browser/component_updater/supervised_user_whitelist_installer_unittest.cc
+++ b/chrome/browser/component_updater/supervised_user_whitelist_installer_unittest.cc
@@ -142,16 +142,17 @@ class MockComponentUpdateService : public ComponentUpdateService,
}
// OnDemandUpdater implementation:
- bool OnDemandUpdate(const std::string& crx_id) override {
+ void OnDemandUpdate(
+ const std::string& crx_id,
+ ComponentUpdateService::CompletionCallback callback) override {
on_demand_update_called_ = true;
if (!component_) {
ADD_FAILURE() << "Trying to update unregistered component " << crx_id;
- return false;
+ return;
}
EXPECT_EQ(GetCrxComponentID(*component_), crx_id);
- return true;
}
private:

Powered by Google App Engine
This is Rietveld 408576698