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

Unified Diff: chrome/browser/policy/device_token_fetcher.h

Issue 6537020: Update policy backend and testserver for the newest policy protocol (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 5 Created 9 years, 10 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: chrome/browser/policy/device_token_fetcher.h
diff --git a/chrome/browser/policy/device_token_fetcher.h b/chrome/browser/policy/device_token_fetcher.h
index fda0ebb8edb7eec41c84ba35484d06b0c47774cd..3215b3c86c6b7a308a8ebfea87e3f7d7e4a63530 100644
--- a/chrome/browser/policy/device_token_fetcher.h
+++ b/chrome/browser/policy/device_token_fetcher.h
@@ -47,7 +47,9 @@ class DeviceTokenFetcher
// Starts fetching a token.
void FetchToken(const std::string& auth_token,
- const std::string& device_id);
+ const std::string& device_id,
+ const em::DeviceRegisterRequest_Type policy_type,
+ const std::string& machine_id);
// Returns the device management token or the empty string if not available.
const std::string& GetDeviceToken();
@@ -123,6 +125,10 @@ class DeviceTokenFetcher
std::string auth_token_;
// Device identifier to send to the server.
std::string device_id_;
+ // Contains policy type to send to the server.
+ em::DeviceRegisterRequest_Type policy_type_;
+ // Contains physical machine id to send to the server.
+ std::string machine_id_;
// Task that has been scheduled to retry fetching a token.
CancelableTask* retry_task_;

Powered by Google App Engine
This is Rietveld 408576698