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

Unified Diff: google_apis/gaia/account_tracker.cc

Issue 472773002: Avoid using an empty scopes set when requesting an OAuth2 access token. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/account_tracker.cc
diff --git a/google_apis/gaia/account_tracker.cc b/google_apis/gaia/account_tracker.cc
index 0ec2ec1aa9676e6c31a19746cb4a903a93a3452e..50c4e7083fe1cdf4257be8703d80ec99e61df795 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(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698