diff options
Diffstat (limited to 'chrome/browser/net/gaia')
| -rw-r--r-- | chrome/browser/net/gaia/token_service.cc | 14 | ||||
| -rw-r--r-- | chrome/browser/net/gaia/token_service.h | 2 |
2 files changed, 10 insertions, 6 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. diff --git a/chrome/browser/net/gaia/token_service.h b/chrome/browser/net/gaia/token_service.h index b6f1b3c..bc17c2b 100644 --- a/chrome/browser/net/gaia/token_service.h +++ b/chrome/browser/net/gaia/token_service.h @@ -173,7 +173,7 @@ class TokenService : public GaiaAuthConsumer, GaiaAuthConsumer::ClientLoginResult credentials_; // Size of array of services (must be defined here). - static const int kNumServices = 2; + static const int kNumServices = 4; // List of services that we're performing operations for. static const char* kServices[kNumServices]; // A bunch of fetchers suitable for token issuing. We don't care about |
