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

Unified Diff: components/component_updater/component_updater_service_internal.h

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: components/component_updater/component_updater_service_internal.h
diff --git a/components/component_updater/component_updater_service_internal.h b/components/component_updater/component_updater_service_internal.h
index fe20526be0fb60d5aaf4fd03f4fb53332f015c50..314cd50b7c430cd322197b308f16e3861c756514 100644
--- a/components/component_updater/component_updater_service_internal.h
+++ b/components/component_updater/component_updater_service_internal.h
@@ -56,7 +56,8 @@ class CrxUpdateService : public ComponentUpdateService,
void OnEvent(Events event, const std::string& id) override;
// Overrides for OnDemandUpdater.
- bool OnDemandUpdate(const std::string& id) override;
+ void OnDemandUpdate(const std::string& id,
+ CompletionCallback callback) override;
private:
void Start();
@@ -64,7 +65,8 @@ class CrxUpdateService : public ComponentUpdateService,
bool CheckForUpdates();
- bool OnDemandUpdateInternal(const std::string& id);
+ void OnDemandUpdateInternal(const std::string& id,
+ CompletionCallback callback);
bool OnDemandUpdateWithCooldown(const std::string& id);
bool DoUnregisterComponent(const CrxComponent& component);
@@ -75,7 +77,9 @@ class CrxUpdateService : public ComponentUpdateService,
void OnUpdate(const std::vector<std::string>& ids,
std::vector<CrxComponent>* components);
- void OnUpdateComplete(const base::TimeTicks& start_time, int error);
+ void OnUpdateComplete(CompletionCallback callback,
+ const base::TimeTicks& start_time,
+ int error);
base::ThreadChecker thread_checker_;

Powered by Google App Engine
This is Rietveld 408576698