projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git]
/
src
/
chrome
/
browser
/
extensions
/
api
/
identity
/
gaia_web_auth_flow.cc
diff --git
a/src/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc
b/src/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc
index
2c63a19
..
36c78b4
100644
(file)
--- a/
src/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc
+++ b/
src/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc
@@
-11,6
+11,8
@@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/profile_oauth2_token_service.h"
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
#include "chrome/browser/profiles/profile.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 "google_apis/gaia/gaia_urls.h"
#include "net/base/escape.h"
#include "google_apis/gaia/gaia_urls.h"
#include "net/base/escape.h"
@@
-62,7
+64,10
@@
void GaiaWebAuthFlow::Start() {
ubertoken_fetcher_.reset(new UbertokenFetcher(token_service,
this,
profile_->GetRequestContext()));
ubertoken_fetcher_.reset(new UbertokenFetcher(token_service,
this,
profile_->GetRequestContext()));
- ubertoken_fetcher_->StartFetchingToken(token_service->GetPrimaryAccountId());
+ SigninManagerBase* signin_manager =
+ SigninManagerFactory::GetForProfile(profile_);
+ ubertoken_fetcher_->StartFetchingToken(
+ signin_manager->GetAuthenticatedAccountId());
}
void GaiaWebAuthFlow::OnUbertokenSuccess(const std::string& token) {
}
void GaiaWebAuthFlow::OnUbertokenSuccess(const std::string& token) {