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

Unified Diff: chrome/browser/policy/cloud/user_policy_signin_service_mobile.h

Issue 2953253002: [DICE] Enable sync for an account that is already present in the token service. (Closed)
Patch Set: Address code review Created 3 years, 5 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/cloud/user_policy_signin_service_mobile.h
diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_mobile.h b/chrome/browser/policy/cloud/user_policy_signin_service_mobile.h
index c02437618f7ac8df84acb953fbb90976627d0dbd..1c3e4c8340f2568d7df902c5c11bfe1c74e7b038 100644
--- a/chrome/browser/policy/cloud/user_policy_signin_service_mobile.h
+++ b/chrome/browser/policy/cloud/user_policy_signin_service_mobile.h
@@ -27,8 +27,7 @@ namespace policy {
class CloudPolicyClientRegistrationHelper;
-// A specialization of the UserPolicySigninServiceBase for the mobile platforms
-// (currently Android and iOS).
+// A specialization of UserPolicySigninServiceBase for the Android.
class UserPolicySigninService : public UserPolicySigninServiceBase {
public:
// Creates a UserPolicySigninService associated with the passed |profile|.
@@ -49,25 +48,11 @@ class UserPolicySigninService : public UserPolicySigninServiceBase {
// token services.
// |callback| is invoked once we have registered this device to fetch policy,
// or once it is determined that |username| is not a managed account.
- void RegisterForPolicy(const std::string& username,
- const std::string& account_id,
- const PolicyRegistrationCallback& callback);
-
-#if !defined(OS_ANDROID)
- // Registers a CloudPolicyClient for fetching policy for |username|.
- // This requires a valid OAuth access token for the scopes returned by the
- // |GetScopes| static function. |callback| is invoked once we have
- // registered this device to fetch policy, or once it is determined that
- // |username| is not a managed account.
- void RegisterForPolicyWithAccessToken(
+ void RegisterForPolicyWithAccountId(
const std::string& username,
- const std::string& access_token,
+ const std::string& account_id,
const PolicyRegistrationCallback& callback);
- // Returns the list of OAuth access scopes required for policy fetching.
- static std::vector<std::string> GetScopes();
-#endif
-
// Overridden from UserPolicySigninServiceBase to cancel the pending delayed
// registration.
void ShutdownUserCloudPolicyManager() override;

Powered by Google App Engine
This is Rietveld 408576698