summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkochi@chromium.org <kochi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-08 08:36:31 +0000
committerkochi@chromium.org <kochi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-08 08:36:31 +0000
commit50597887e4917657f7002901d48342b13114fa42 (patch)
treee4b05d8c271046939601be6d699ba94b9918eba1
parentf2aaf05e97120e8a3880b881e34b2f3fc17256cf (diff)
downloadchromium_src-50597887e4917657f7002901d48342b13114fa42.zip
chromium_src-50597887e4917657f7002901d48342b13114fa42.tar.gz
chromium_src-50597887e4917657f7002901d48342b13114fa42.tar.bz2
Use auth/drive scope, instead of auth/drive.file scope
For full access to Drive, we need less restrictive scope. https://www.googleapis.com/auth/drive.file only allows accessing files which is created on its own (i.e. Chrome), which is useless for file browser purpose. Instead, we have to use https://www.googleapis.com/auth/drive scope. BUG=chromium:127728 TEST=none Review URL: https://chromiumcodereview.appspot.com/10832201 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150518 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/chromeos/gdata/operations_base.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/gdata/operations_base.cc b/chrome/browser/chromeos/gdata/operations_base.cc
index b2a1d46..4ba592e 100644
--- a/chrome/browser/chromeos/gdata/operations_base.cc
+++ b/chrome/browser/chromeos/gdata/operations_base.cc
@@ -50,7 +50,7 @@ const char kUserContentScope[] = "https://docs.googleusercontent.com/";
const char kContactsScope[] = "https://www.google.com/m8/feeds/";
// OAuth scope for Drive API.
-const char kDriveScope[] = "https://www.googleapis.com/auth/drive.file";
+const char kDriveScope[] = "https://www.googleapis.com/auth/drive";
const char kDriveAppsScope[] = "https://www.googleapis.com/auth/drive.apps";
const char kDriveAppsReadonlyScope[] =
"https://www.googleapis.com/auth/drive.apps.readonly";