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

Unified Diff: chrome/browser/signin/profile_oauth2_token_service.cc

Issue 44083005: policy: Remove UserCloudPolicyManagerFactory's dependency on Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 2 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/signin/profile_oauth2_token_service.cc
diff --git a/chrome/browser/signin/profile_oauth2_token_service.cc b/chrome/browser/signin/profile_oauth2_token_service.cc
index b09138700815f64c9b1ea75d525b5220d74b2540..2eaf5e81d077c9e46a1dccec4a430af16834dd3e 100644
--- a/chrome/browser/signin/profile_oauth2_token_service.cc
+++ b/chrome/browser/signin/profile_oauth2_token_service.cc
@@ -213,7 +213,7 @@ std::string ProfileOAuth2TokenService::GetPrimaryAccountId() {
return std::string("SupervisedUser");
SigninManagerBase* signin_manager =
- SigninManagerFactory::GetForProfileIfExists(profile_);
+ SigninManagerFactory::GetForBrowserContextIfExists(profile_);
// TODO(fgorski): DCHECK(signin_manager) here - it may require update to test
// code and the line above (SigninManager might not exist yet).
return signin_manager ? signin_manager->GetAuthenticatedUsername()

Powered by Google App Engine
This is Rietveld 408576698