| 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_;
|
|
|
|
|