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

Unified Diff: components/policy/core/common/cloud/cloud_policy_service.h

Issue 814123006: Revert of Implemented consumer management unenrollment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dcpm
Patch Set: Created 5 years, 11 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | components/policy/core/common/cloud/cloud_policy_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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).
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | components/policy/core/common/cloud/cloud_policy_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698