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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 297853006: Make sure auth error reporting handles guest mode correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 7 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
« no previous file with comments | « chrome/browser/ui/views/profiles/new_avatar_button.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « chrome/browser/ui/views/profiles/new_avatar_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698