summaryrefslogtreecommitdiffstats
path: root/google_apis
diff options
context:
space:
mode:
authordavidroche@chromium.org <davidroche@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-29 17:51:49 +0000
committerdavidroche@chromium.org <davidroche@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-29 17:51:49 +0000
commit488fbcce97ace8aab6c2d8a9f38c1df468fe070e (patch)
tree1cfbce32a90302b7b910f2248f58cc7659d527b3 /google_apis
parent4d13a3593403ab890e4e9f51ede9b5104b56e4d8 (diff)
downloadchromium_src-488fbcce97ace8aab6c2d8a9f38c1df468fe070e.zip
chromium_src-488fbcce97ace8aab6c2d8a9f38c1df468fe070e.tar.gz
chromium_src-488fbcce97ace8aab6c2d8a9f38c1df468fe070e.tar.bz2
Modify the enterprise enrollment flow to fetch an optional device robot api token from the policy server. This token will be stored in the device's Local State for use by Cloud Print across all profiles (including Guest and Public Sessions). The new steps that fetch the token during enrollment are optional, so that enrollment will still succeed if a policy server doesn't support robot api tokens.
BUG=164606 Review URL: https://chromiumcodereview.appspot.com/12538009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197075 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_apis')
-rw-r--r--google_apis/gaia/gaia_constants.cc3
-rw-r--r--google_apis/gaia/gaia_constants.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/google_apis/gaia/gaia_constants.cc b/google_apis/gaia/gaia_constants.cc
index 4ac9ea4..e8a7beb 100644
--- a/google_apis/gaia/gaia_constants.cc
+++ b/google_apis/gaia/gaia_constants.cc
@@ -29,6 +29,9 @@ const char kCloudPrintService[] = "cloudprint";
const char kDeviceManagementServiceOAuth[] =
"https://www.googleapis.com/auth/chromeosdevicemanagement";
+// OAuth2 scope for access to all Google APIs.
+const char kAnyApiOAuth2Scope[] = "https://www.googleapis.com/auth/any-api";
+
// Service for LSO endpoint of Google that exposes OAuth APIs.
const char kLSOService[] = "lso";
diff --git a/google_apis/gaia/gaia_constants.h b/google_apis/gaia/gaia_constants.h
index 503db3a1..eba9ce1 100644
--- a/google_apis/gaia/gaia_constants.h
+++ b/google_apis/gaia/gaia_constants.h
@@ -20,6 +20,7 @@ extern const char kSyncService[];
extern const char kRemotingService[];
extern const char kCloudPrintService[];
extern const char kDeviceManagementServiceOAuth[];
+extern const char kAnyApiOAuth2Scope[];
extern const char kLSOService[];
// Used with uber auth tokens when needed.