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

Unified Diff: chrome/browser/services/gcm/gcm_account_tracker.cc

Issue 452603002: [GCM] Adding checkin server scope in GCM Account Tracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing trailing slash from the scope 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: chrome/browser/services/gcm/gcm_account_tracker.cc
diff --git a/chrome/browser/services/gcm/gcm_account_tracker.cc b/chrome/browser/services/gcm/gcm_account_tracker.cc
index d2636ad0229144a8fe0e7d6f1276545fce208639..97f775266cfa790a2d0ecad258c244cbd02383e1 100644
--- a/chrome/browser/services/gcm/gcm_account_tracker.cc
+++ b/chrome/browser/services/gcm/gcm_account_tracker.cc
@@ -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);
« 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