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

Unified Diff: chrome/browser/extensions/api/identity/identity_signin_flow.cc

Issue 144013009: Extensions: Replace PO2TS::GetPrimaryAccountId() with SMB::GetAuthenticatedAccountId. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/extensions/api/identity/identity_signin_flow.cc
diff --git a/chrome/browser/extensions/api/identity/identity_signin_flow.cc b/chrome/browser/extensions/api/identity/identity_signin_flow.cc
index a0aa85e88920b78076f685071abff35dcb032b83..65fd64909cf4bb84eb82e1e5ad148e1c3699b363 100644
--- a/chrome/browser/extensions/api/identity/identity_signin_flow.cc
+++ b/chrome/browser/extensions/api/identity/identity_signin_flow.cc
@@ -7,6 +7,8 @@
#include "chrome/browser/app_mode/app_mode_utils.h"
#include "chrome/browser/signin/profile_oauth2_token_service.h"
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
+#include "chrome/browser/signin/signin_manager.h"
+#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/ui/webui/signin/login_ui_service.h"
#include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
@@ -43,8 +45,8 @@ void IdentitySigninFlow::Start() {
void IdentitySigninFlow::OnRefreshTokenAvailable(
const std::string& account_id) {
- if (ProfileOAuth2TokenServiceFactory::GetForProfile(profile_)->
- GetPrimaryAccountId() == account_id) {
+ if (SigninManagerFactory::GetForProfile(profile_)->
+ GetAuthenticatedAccountId() == account_id) {
delegate_->SigninSuccess();
}
}

Powered by Google App Engine
This is Rietveld 408576698