| Index: components/policy/core/common/cloud/cloud_policy_service.h
|
| diff --git a/components/policy/core/common/cloud/cloud_policy_service.h b/components/policy/core/common/cloud/cloud_policy_service.h
|
| index 9dc00b4bfcdaeadce3d36967a7f181269f0a1aa2..66ecc8eb03de84647d31c9c961b79a3eb6a9ac43 100644
|
| --- a/components/policy/core/common/cloud/cloud_policy_service.h
|
| +++ b/components/policy/core/common/cloud/cloud_policy_service.h
|
| @@ -26,11 +26,7 @@
|
| public:
|
| // Callback invoked once the policy refresh attempt has completed. Passed
|
| // bool parameter is true if the refresh was successful (no error).
|
| - using RefreshPolicyCallback = base::Callback<void(bool)>;
|
| -
|
| - // Callback invoked once the unregister attempt has completed. Passed bool
|
| - // parameter is true if unregistering was successful (no error).
|
| - using UnregisterCallback = base::Callback<void(bool)>;
|
| + typedef base::Callback<void(bool)> RefreshPolicyCallback;
|
|
|
| class POLICY_EXPORT Observer {
|
| public:
|
| @@ -56,11 +52,6 @@
|
| // or aborts because of errors.
|
| void RefreshPolicy(const RefreshPolicyCallback& callback);
|
|
|
| - // Unregisters the device. |callback| will be invoked after the operation
|
| - // completes or aborts because of errors. All pending refresh policy requests
|
| - // will be aborted, and no further refresh policy requests will be allowed.
|
| - void Unregister(const UnregisterCallback& callback);
|
| -
|
| // Adds/Removes an Observer for this object.
|
| void AddObserver(Observer* observer);
|
| void RemoveObserver(Observer* observer);
|
| @@ -85,10 +76,6 @@
|
| // is passed through to the refresh callbacks.
|
| void RefreshCompleted(bool success);
|
|
|
| - // Invokes the unregister callback and clears unregister state. The |success|
|
| - // flag is passed through to the unregister callback.
|
| - void UnregisterCompleted(bool success);
|
| -
|
| // The policy type that will be fetched by the |client_|, with the optional
|
| // |settings_entity_id_|.
|
| std::string policy_type_;
|
| @@ -110,16 +97,8 @@
|
| REFRESH_POLICY_STORE,
|
| } refresh_state_;
|
|
|
| - // Tracks the state of a pending unregister operation, if any.
|
| - enum {
|
| - UNREGISTER_NONE,
|
| - UNREGISTER_PENDING,
|
| - } unregister_state_;
|
| -
|
| // Callbacks to invoke upon policy refresh.
|
| std::vector<RefreshPolicyCallback> refresh_callbacks_;
|
| -
|
| - UnregisterCallback unregister_callback_;
|
|
|
| // Set to true once the service is initialized (initial policy load/refresh
|
| // is complete).
|
|
|