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

Unified Diff: chrome/browser/chromeos/login/signin/token_handle_fetcher.h

Issue 1412813003: This CL replaces user_manager::UserID with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@468875--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part2--user_names
Patch Set: Rebased. Created 5 years, 2 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: chrome/browser/chromeos/login/signin/token_handle_fetcher.h
diff --git a/chrome/browser/chromeos/login/signin/token_handle_fetcher.h b/chrome/browser/chromeos/login/signin/token_handle_fetcher.h
index 5c471a4384c3319c91feafc318da4a1134c88bd9..976ad5d235def68e6ee58c59a1e79cde7d074b9f 100644
--- a/chrome/browser/chromeos/login/signin/token_handle_fetcher.h
+++ b/chrome/browser/chromeos/login/signin/token_handle_fetcher.h
@@ -13,7 +13,7 @@
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "components/keyed_service/core/keyed_service_shutdown_notifier.h"
-#include "components/user_manager/user_id.h"
+#include "components/signin/core/account_id/account_id.h"
#include "google_apis/gaia/gaia_oauth_client.h"
#include "google_apis/gaia/oauth2_token_service.h"
@@ -29,11 +29,10 @@ class TokenHandleFetcher : public gaia::GaiaOAuthClient::Delegate,
public OAuth2TokenService::Consumer,
public OAuth2TokenService::Observer {
public:
- TokenHandleFetcher(TokenHandleUtil* util,
- const user_manager::UserID& user_id);
+ TokenHandleFetcher(TokenHandleUtil* util, const AccountId& user_id);
achuithb 2015/10/23 00:08:50 account_id
Alexander Alekseev 2015/10/23 09:11:22 Done.
~TokenHandleFetcher() override;
- typedef base::Callback<void(const user_manager::UserID&, bool success)>
+ typedef base::Callback<void(const AccountId&, bool success)>
TokenFetchingCallback;
// Get token handle for user who have just signed in via GAIA. This
@@ -68,7 +67,7 @@ class TokenHandleFetcher : public gaia::GaiaOAuthClient::Delegate,
void OnProfileDestroyed();
TokenHandleUtil* token_handle_util_;
- user_manager::UserID user_id_;
+ AccountId user_id_;
OAuth2TokenService* token_service_;
bool waiting_for_refresh_token_;

Powered by Google App Engine
This is Rietveld 408576698