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

Side by Side Diff: components/signin/ios/browser/profile_oauth2_token_service_ios.h

Issue 288813003: Add username of account that has an auth error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_ 5 #ifndef COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_
6 #define COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_ 6 #define COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 class AccountInfo : public SigninErrorController::AuthStatusProvider { 107 class AccountInfo : public SigninErrorController::AuthStatusProvider {
108 public: 108 public:
109 AccountInfo(ProfileOAuth2TokenService* token_service, 109 AccountInfo(ProfileOAuth2TokenService* token_service,
110 const std::string& account_id); 110 const std::string& account_id);
111 virtual ~AccountInfo(); 111 virtual ~AccountInfo();
112 112
113 void SetLastAuthError(const GoogleServiceAuthError& error); 113 void SetLastAuthError(const GoogleServiceAuthError& error);
114 114
115 // SigninErrorController::AuthStatusProvider implementation. 115 // SigninErrorController::AuthStatusProvider implementation.
116 virtual std::string GetAccountId() const OVERRIDE; 116 virtual std::string GetAccountId() const OVERRIDE;
117 virtual std::string GetUsername() const OVERRIDE;
117 virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE; 118 virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE;
118 119
119 private: 120 private:
120 ProfileOAuth2TokenService* token_service_; 121 ProfileOAuth2TokenService* token_service_;
121 std::string account_id_; 122 std::string account_id_;
122 GoogleServiceAuthError last_auth_error_; 123 GoogleServiceAuthError last_auth_error_;
123 124
124 DISALLOW_COPY_AND_ASSIGN(AccountInfo); 125 DISALLOW_COPY_AND_ASSIGN(AccountInfo);
125 }; 126 };
126 127
(...skipping 26 matching lines...) Expand all
153 // 154 //
154 // If |use_legacy_token_service_| is true, then this 155 // If |use_legacy_token_service_| is true, then this
155 // |ProfileOAuth2TokenServiceIOS| delegates all calls to the parent 156 // |ProfileOAuth2TokenServiceIOS| delegates all calls to the parent
156 // |MutableProfileOAuth2TokenService|. 157 // |MutableProfileOAuth2TokenService|.
157 bool use_legacy_token_service_; 158 bool use_legacy_token_service_;
158 159
159 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenServiceIOS); 160 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenServiceIOS);
160 }; 161 };
161 162
162 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_ 163 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698