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

Unified Diff: components/signin/ios/browser/profile_oauth2_token_service_ios.h

Issue 809313009: Make the SigninErrorController a PKS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary header Created 5 years, 11 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: components/signin/ios/browser/profile_oauth2_token_service_ios.h
diff --git a/components/signin/ios/browser/profile_oauth2_token_service_ios.h b/components/signin/ios/browser/profile_oauth2_token_service_ios.h
index 65381ce9f10ddf2bff557336028bb86c0fbec06e..28dbc793759de59873fbd86cbb97d3d1b42c6fff 100644
--- a/components/signin/ios/browser/profile_oauth2_token_service_ios.h
+++ b/components/signin/ios/browser/profile_oauth2_token_service_ios.h
@@ -9,6 +9,7 @@
#include "base/threading/thread_checker.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
+#include "components/signin/core/browser/signin_error_controller.h"
class OAuth2AccessTokenFetcher;
@@ -39,7 +40,9 @@ class ProfileOAuth2TokenServiceIOS : public ProfileOAuth2TokenService {
const std::string& access_token) override;
// ProfileOAuth2TokenService
- virtual void Initialize(SigninClient* client) override;
+ virtual void Initialize(
+ SigninClient* client,
+ SigninErrorController* signin_error_controller) override;
virtual void LoadCredentials(const std::string& primary_account_id) override;
virtual std::vector<std::string> GetAccounts() override;
virtual void UpdateAuthError(const std::string& account_id,
@@ -85,7 +88,7 @@ class ProfileOAuth2TokenServiceIOS : public ProfileOAuth2TokenService {
private:
class AccountInfo : public SigninErrorController::AuthStatusProvider {
public:
- AccountInfo(ProfileOAuth2TokenService* token_service,
+ AccountInfo(SigninErrorController* signin_error_controller,
const std::string& account_id);
virtual ~AccountInfo();
@@ -97,7 +100,7 @@ class ProfileOAuth2TokenServiceIOS : public ProfileOAuth2TokenService {
virtual GoogleServiceAuthError GetAuthStatus() const override;
private:
- ProfileOAuth2TokenService* token_service_;
+ SigninErrorController* signin_error_controller_;
std::string account_id_;
GoogleServiceAuthError last_auth_error_;

Powered by Google App Engine
This is Rietveld 408576698