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

Unified Diff: components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc

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: components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc b/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
index f4b2699988d8fa785304927ee1eb424a86e0f571..381b5f9d25a02872cfd94d1af4df5bd520e25445 100644
--- a/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
+++ b/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
@@ -202,15 +202,6 @@ void CloudPolicyClientRegistrationHelper::StartRegistrationWithLoginToken(
base::Unretained(this)));
}
-void CloudPolicyClientRegistrationHelper::StartRegistrationWithAccessToken(
- const std::string& access_token,
- const base::Closure& callback) {
- DCHECK(!client_->is_registered());
- callback_ = callback;
- client_->AddObserver(this);
- OnTokenFetched(access_token);
-}
-
// static
std::vector<std::string>
CloudPolicyClientRegistrationHelper::GetScopes() {

Powered by Google App Engine
This is Rietveld 408576698