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

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

Issue 23382008: Making OAuth2TokenService multi-login aware, updating callers, minor fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing to include the update to ProfileSyncService: r224220 Created 7 years, 3 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/cloud_policy_client_registration_helper.h
diff --git a/chrome/browser/policy/cloud/cloud_policy_client_registration_helper.h b/chrome/browser/policy/cloud/cloud_policy_client_registration_helper.h
index cb26ed5d632b0ff14042e88b89e1609ab22593c3..47f02012443e63de06115efa58243c1a8c6a4027 100644
--- a/chrome/browser/policy/cloud/cloud_policy_client_registration_helper.h
+++ b/chrome/browser/policy/cloud/cloud_policy_client_registration_helper.h
@@ -15,7 +15,6 @@
#include "chrome/browser/policy/cloud/user_info_fetcher.h"
#include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h"
-class AndroidProfileOAuth2TokenService;
class OAuth2TokenService;
namespace net {
@@ -43,18 +42,11 @@ class CloudPolicyClientRegistrationHelper : public UserInfoFetcher::Delegate,
// Starts the client registration process. This version uses the
// supplied OAuth2TokenService to mint the new token for the userinfo
- // and DM services, using the |username| account.
+ // and DM services, using the |account_id|.
// |callback| is invoked when the registration is complete.
void StartRegistration(
-#if defined(OS_ANDROID)
- // TODO(atwilson): Remove this when the Android StartRequestForUsername()
- // API is folded into the base OAuth2TokenService class (when that class
- // is made multi-account aware).
- AndroidProfileOAuth2TokenService* token_service,
-#else
OAuth2TokenService* token_service,
-#endif
- const std::string& username,
+ const std::string& account_id,
const base::Closure& callback);
#if !defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698