Commit 669b162c authored by fgorski@chromium.org's avatar fgorski@chromium.org

[GCM] Adding checkin server scope in GCM Account Tracker

* Android Checkin server started handling OAuth2 tokens for checkin
  very recently and is using the added scope to do it.

BUG=374969
R=zea@chromium.org

Review URL: https://codereview.chromium.org/452603002

Cr-Commit-Position: refs/heads/master@{#288262}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288262 0039d316-1c4b-4281-b951-d872f2087c98
parent c852197e
......@@ -14,6 +14,8 @@ namespace gcm {
namespace {
const char kGCMGroupServerScope[] = "https://www.googleapis.com/auth/gcm";
const char kGCMCheckinServerScope[] =
"https://www.googleapis.com/auth/android_checkin";
const char kGCMAccountTrackerName[] = "gcm_account_tracker";
} // namespace
......@@ -216,6 +218,7 @@ void GCMAccountTracker::GetToken(AccountInfos::iterator& account_iter) {
OAuth2TokenService::ScopeSet scopes;
scopes.insert(kGCMGroupServerScope);
scopes.insert(kGCMCheckinServerScope);
scoped_ptr<OAuth2TokenService::Request> request =
GetTokenService()->StartRequest(account_iter->first, scopes, this);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment