summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/gaia/token_service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/net/gaia/token_service.cc')
-rw-r--r--chrome/browser/net/gaia/token_service.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/chrome/browser/net/gaia/token_service.cc b/chrome/browser/net/gaia/token_service.cc
index 963b546..a2c4cfe 100644
--- a/chrome/browser/net/gaia/token_service.cc
+++ b/chrome/browser/net/gaia/token_service.cc
@@ -17,8 +17,13 @@
// Unfortunately kNumServices must be defined in the .h.
// TODO(chron): Sync doesn't use the TalkToken anymore so we can stop
// requesting it.
-const char* TokenService::kServices[] = {GaiaConstants::kSyncService,
- GaiaConstants::kTalkService};
+const char* TokenService::kServices[] = {
+ GaiaConstants::kGaiaService,
+ GaiaConstants::kSyncService,
+ GaiaConstants::kTalkService,
+ GaiaConstants::kDeviceManagementService
+};
+
TokenService::TokenService()
: token_loading_query_(0) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -184,7 +189,7 @@ void TokenService::IssueAuthTokenForTest(const std::string& service,
void TokenService::OnIssueAuthTokenSuccess(const std::string& service,
const std::string& auth_token) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- LOG(INFO) << "Got an authorization token for " << service;
+ VLOG(1) << "Got an authorization token for " << service;
token_map_[service] = auth_token;
FireTokenAvailableNotification(service, auth_token);
SaveAuthTokenToDB(service, auth_token);
@@ -237,8 +242,7 @@ void TokenService::LoadTokensIntoMemory(
db_tokens.count(kServices[i])) {
std::string db_token = db_tokens.find(kServices[i])->second;
if (!db_token.empty()) {
- LOG(INFO) << "Loading " << kServices[i] << "token from DB:"
- << db_token;
+ VLOG(1) << "Loading " << kServices[i] << "token from DB: " << db_token;
(*in_memory_tokens)[kServices[i]] = db_token;
FireTokenAvailableNotification(kServices[i], db_token);
// Failures are only for network errors.