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

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: Updates to AndroidPO2TS and removing the DCHECK(signin_manager) from GetPrimaryAccountId Created 7 years, 4 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..664fec0f4e9396c8223a882fa9107c6b78e64858 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 {
@@ -46,14 +45,7 @@ class CloudPolicyClientRegistrationHelper : public UserInfoFetcher::Delegate,
// and DM services, using the |username| account.
// |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,
Andrew T Wilson (Slow) 2013/09/03 14:04:24 yay
fgorski 2013/09/03 20:50:40 Done.
-#else
OAuth2TokenService* token_service,
-#endif
const std::string& username,
const base::Closure& callback);

Powered by Google App Engine
This is Rietveld 408576698