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

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

Issue 2458653003: Add "critical" parameter to DMServer requests. (Closed)
Patch Set: Created 4 years, 2 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/policy/core/common/cloud/device_management_service.h
diff --git a/components/policy/core/common/cloud/device_management_service.h b/components/policy/core/common/cloud/device_management_service.h
index ba08a746006ffc5c8ce4a520ddd116616685551e..61b763fdb4408c4f826b101c29bd6c868d046fa7 100644
--- a/components/policy/core/common/cloud/device_management_service.h
+++ b/components/policy/core/common/cloud/device_management_service.h
@@ -72,6 +72,12 @@ class POLICY_EXPORT DeviceManagementRequestJob {
void SetOAuthToken(const std::string& oauth_token);
void SetDMToken(const std::string& dm_token);
void SetClientID(const std::string& client_id);
+ // Sets the critical request parameter, which is used to differentiate regular
+ // DMServer requests (like scheduled policy fetches) from time-sensitive ones
+ // (like policy fetch during device enrollment). Should only be called before
+ // Start()ing the job, at most once.
+ void SetCritical(bool critical);
+
enterprise_management::DeviceManagementRequest* GetRequest();
// A job may automatically retry if it fails due to a temporary condition, or

Powered by Google App Engine
This is Rietveld 408576698