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

Unified Diff: chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h

Issue 1108983002: Fetch policy with refresh token. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix user_cloud_policy_manager_chromeos_unittest Created 5 years, 8 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/chromeos/policy/user_cloud_policy_manager_chromeos.h
diff --git a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h
index fdc7766d61e9098977631243f9e95a7e758f68b8..a7df866b14e2d15bd5f7810784376992fb5cab4d 100644
--- a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h
+++ b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h
@@ -109,9 +109,10 @@ class UserCloudPolicyManagerChromeOS : public CloudPolicyManager,
void GetChromePolicy(PolicyMap* policy_map) override;
private:
- // Fetches a policy token using the authentication context of the signin
- // context, and calls back to OnOAuth2PolicyTokenFetched when done.
- void FetchPolicyOAuthTokenUsingSigninContext();
+ // Fetches a policy token using the refresh token if available, or the
+ // authentication context of the signin context, and calls back
+ // OnOAuth2PolicyTokenFetched when done.
+ void FetchPolicyOAuthToken();
// Called once the policy access token is available, and starts the
// registration with the policy server if the token was successfully fetched.

Powered by Google App Engine
This is Rietveld 408576698