Chromium Code Reviews| Index: chrome/browser/chromeos/gdata/operations_base.cc |
| diff --git a/chrome/browser/chromeos/gdata/operations_base.cc b/chrome/browser/chromeos/gdata/operations_base.cc |
| index ac6c67ae483883b8d4bd49103bb57db85b563631..847e5260243f2515ba99b538d2a1e8e7c210071d 100644 |
| --- a/chrome/browser/chromeos/gdata/operations_base.cc |
| +++ b/chrome/browser/chromeos/gdata/operations_base.cc |
| @@ -10,6 +10,7 @@ |
| #include "base/stringprintf.h" |
| #include "base/values.h" |
| #include "chrome/browser/browser_process.h" |
| +#include "chrome/browser/chromeos/gdata/gdata_util.h" |
| #include "chrome/common/net/gaia/gaia_urls.h" |
| #include "chrome/common/net/gaia/google_service_auth_error.h" |
| #include "chrome/common/net/gaia/oauth2_access_token_fetcher.h" |
| @@ -45,6 +46,10 @@ const char kDocsListScope[] = "https://docs.google.com/feeds/"; |
| const char kSpreadsheetsScope[] = "https://spreadsheets.google.com/feeds/"; |
| const char kUserContentScope[] = "https://docs.googleusercontent.com/"; |
| +// OAuth scope for Drive API. |
| +const char kDriveFileScope[] = "https://www.googleapis.com/auth/drive.file"; |
|
hashimoto
2012/07/27 06:48:37
What is this for?
kochi
2012/07/27 06:56:58
This will be used for file access for Drive v2 API
|
| +const char kDriveAppsScope[] = "https://www.googleapis.com/auth/drive.apps"; |
| + |
| } // namespace |
| namespace gdata { |
| @@ -67,6 +72,8 @@ void AuthOperation::Start() { |
| scopes.push_back(kDocsListScope); |
| scopes.push_back(kSpreadsheetsScope); |
| scopes.push_back(kUserContentScope); |
| + if (gdata::util::IsDriveV2ApiEnabled()) |
| + scopes.push_back(kDriveAppsScope); |
| oauth2_access_token_fetcher_.reset(new OAuth2AccessTokenFetcher( |
| this, g_browser_process->system_request_context())); |
| NotifyStart(); |