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

Unified Diff: chrome/common/net/gaia/gaia_constants.cc

Issue 7574009: Added OAuth support to TokenService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaked mock for OnOAuthWrapBridgeFailure. Created 9 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 | « chrome/common/net/gaia/gaia_constants.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/gaia/gaia_constants.cc
diff --git a/chrome/common/net/gaia/gaia_constants.cc b/chrome/common/net/gaia/gaia_constants.cc
index edbd534c22438505331ed4ffddf35d80f8b884c5..3d52c7becc2602171fbc3433dfba7082e4fe19cb 100644
--- a/chrome/common/net/gaia/gaia_constants.cc
+++ b/chrome/common/net/gaia/gaia_constants.cc
@@ -16,19 +16,28 @@ const char kChromeSource[] = "ChromiumBrowser";
const char kGaiaService[] = "gaia";
// Service name for Gaia Contacts API. API is used to get user's image.
const char kContactsService[] = "cp";
-// Service name for sync.
+
+// Service/scope names for sync.
const char kSyncService[] = "chromiumsync";
+const char kSyncServiceOAuth[] = "https://www.googleapis.com/auth/chromesync";
+
// Service name for XMPP Google Talk.
const char kTalkService[] = "talk";
// Service name for remoting.
const char kRemotingService[] = "chromoting";
// Service name for cloud print.
const char kCloudPrintService[] = "cloudprint";
-// Service name for device management (cloud-based policy) server.
+
+// Service/scope names for device management (cloud-based policy) server.
const char kDeviceManagementService[] = "mobilesync";
+const char kDeviceManagementServiceOAuth[] =
+ "https://www.googleapis.com/auth/chromeosdevicemanagement";
// Used to mint uber auth tokens when needed.
const char kGaiaSid[] = "sid";
const char kGaiaLsid[] = "lsid";
+extern const char kGaiaOAuthToken[] = "oauthToken";
+extern const char kGaiaOAuthSecret[] = "oauthSecret";
+extern const char kGaiaOAuthDuration[] = "3600";
} // namespace GaiaConstants
« no previous file with comments | « chrome/common/net/gaia/gaia_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698