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

Side by Side Diff: components/signin/core/browser/account_tracker_service.h

Issue 1256283002: GAIA ID migration for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 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
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_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_ 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_ 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 const std::string& gaia, 118 const std::string& gaia,
119 const std::string& email); 119 const std::string& email);
120 120
121 // Seeds the account whose account_id is given by PickAccountIdForAccount() 121 // Seeds the account whose account_id is given by PickAccountIdForAccount()
122 // with its corresponding gaia id and email address. Returns the same 122 // with its corresponding gaia id and email address. Returns the same
123 // value PickAccountIdForAccount() when given the same arguments. 123 // value PickAccountIdForAccount() when given the same arguments.
124 std::string SeedAccountInfo(const std::string& gaia, 124 std::string SeedAccountInfo(const std::string& gaia,
125 const std::string& email); 125 const std::string& email);
126 void SeedAccountInfo(AccountInfo info); 126 void SeedAccountInfo(AccountInfo info);
127 127
128 void RemoveAccount(const std::string& account_id);
129
128 AccountIdMigrationState GetMigrationState(); 130 AccountIdMigrationState GetMigrationState();
129 void SetMigrationDone(); 131 void SetMigrationDone();
130 static AccountIdMigrationState GetMigrationState(PrefService* pref_service); 132 static AccountIdMigrationState GetMigrationState(PrefService* pref_service);
131 133
132 protected: 134 protected:
133 // Available to be called in tests. 135 // Available to be called in tests.
134 void SetAccountStateFromUserInfo(const std::string& account_id, 136 void SetAccountStateFromUserInfo(const std::string& account_id,
135 const base::DictionaryValue* user_info); 137 const base::DictionaryValue* user_info);
136 void SetIsChildAccount(const std::string& account_id, 138 void SetIsChildAccount(const std::string& account_id,
137 const bool& is_child_account); 139 const bool& is_child_account);
(...skipping 23 matching lines...) Expand all
161 void SetMigrationState(AccountIdMigrationState state); 163 void SetMigrationState(AccountIdMigrationState state);
162 164
163 SigninClient* signin_client_; // Not owned. 165 SigninClient* signin_client_; // Not owned.
164 std::map<std::string, AccountState> accounts_; 166 std::map<std::string, AccountState> accounts_;
165 base::ObserverList<Observer> observer_list_; 167 base::ObserverList<Observer> observer_list_;
166 168
167 DISALLOW_COPY_AND_ASSIGN(AccountTrackerService); 169 DISALLOW_COPY_AND_ASSIGN(AccountTrackerService);
168 }; 170 };
169 171
170 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_ 172 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698