| Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc
|
| diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
|
| index a110cac6ba5d5435cd9c899ff1fd423b228c2cb6..34f8936515d03c77304b55f4fb81aeadd9b264e9 100644
|
| --- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
|
| +++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
|
| @@ -100,16 +100,14 @@ gfx::ImageSkia CreateSquarePlaceholderImage(int size) {
|
| }
|
|
|
| bool HasAuthError(Profile* profile) {
|
| - SigninErrorController* error =
|
| - ProfileOAuth2TokenServiceFactory::GetForProfile(profile)->
|
| - signin_error_controller();
|
| + const SigninErrorController* error =
|
| + profiles::GetSigninErrorController(profile);
|
| return error && error->HasError();
|
| }
|
|
|
| std::string GetAuthErrorAccountId(Profile* profile) {
|
| - SigninErrorController* error =
|
| - ProfileOAuth2TokenServiceFactory::GetForProfile(profile)->
|
| - signin_error_controller();
|
| + const SigninErrorController* error =
|
| + profiles::GetSigninErrorController(profile);
|
| if (!error)
|
| return std::string();
|
|
|
| @@ -117,9 +115,8 @@ std::string GetAuthErrorAccountId(Profile* profile) {
|
| }
|
|
|
| std::string GetAuthErrorUsername(Profile* profile) {
|
| - SigninErrorController* error =
|
| - ProfileOAuth2TokenServiceFactory::GetForProfile(profile)->
|
| - signin_error_controller();
|
| + const SigninErrorController* error =
|
| + profiles::GetSigninErrorController(profile);
|
| if (!error)
|
| return std::string();
|
|
|
|
|