summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsarda@chromium.org <msarda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-14 17:23:27 +0000
committermsarda@chromium.org <msarda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-14 17:25:05 +0000
commitc53538486f650f51469e19110e98ea4c67885a64 (patch)
treec7f26526f18eb31b2eadc999f20b17cd6244b9c3
parentca9a97428fa70f0460bed633a035ee1e4b73047b (diff)
downloadchromium_src-c53538486f650f51469e19110e98ea4c67885a64.zip
chromium_src-c53538486f650f51469e19110e98ea4c67885a64.tar.gz
chromium_src-c53538486f650f51469e19110e98ea4c67885a64.tar.bz2
Avoid using an empty scopes set when requesting an OAuth2 access token.
Usign an empty scopes set leads to a server response "code: BAD_REQUEST, http status: 400, MISSING_SCOPE" on iOS. This CL uses a non-empty scopes set for the account id tracker. BUG=NONE Review URL: https://codereview.chromium.org/472773002 Cr-Commit-Position: refs/heads/master@{#289630} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289630 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--google_apis/gaia/account_tracker.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/google_apis/gaia/account_tracker.cc b/google_apis/gaia/account_tracker.cc
index 0ec2ec1..50c4e70 100644
--- a/google_apis/gaia/account_tracker.cc
+++ b/google_apis/gaia/account_tracker.cc
@@ -274,8 +274,10 @@ AccountIdFetcher::~AccountIdFetcher() {
}
void AccountIdFetcher::Start() {
+ OAuth2TokenService::ScopeSet scopes;
+ scopes.insert("https://www.googleapis.com/auth/userinfo.profile");
login_token_request_ = token_service_->StartRequest(
- account_key_, OAuth2TokenService::ScopeSet(), this);
+ account_key_, scopes, this);
}
void AccountIdFetcher::OnGetTokenSuccess(