Lines Matching full:service
53 // Allow the token service to be cleared from the command line.
61 std::string service = value.substr(0, separator);
63 token_map_[service] = token;
64 SaveAuthTokenToDB(service, token);
107 void TokenService::SaveAuthTokenToDB(const std::string& service,
110 web_data_service_->SetTokenForService(service, auth_token);
142 bool TokenService::HasTokenForService(const char* const service) const {
143 return token_map_.count(service) > 0;
147 const char* const service) const {
149 if (token_map_.count(service) > 0) {
151 return (*token_map_.find(service)).second;
156 // Note that this can fire twice or more for any given service.
162 const std::string& service,
165 TokenAvailableDetails details(service, auth_token);
173 const std::string& service,
176 TokenRequestFailedDetails details(service, error);
183 void TokenService::IssueAuthTokenForTest(const std::string& service,
185 token_map_[service] = auth_token;
186 FireTokenAvailableNotification(service, auth_token);
189 void TokenService::OnIssueAuthTokenSuccess(const std::string& service,
192 VLOG(1) << "Got an authorization token for " << service;
193 token_map_[service] = auth_token;
194 FireTokenAvailableNotification(service, auth_token);
195 SaveAuthTokenToDB(service, auth_token);
198 void TokenService::OnIssueAuthTokenFailure(const std::string& service,
201 LOG(WARNING) << "Auth token issuing failed for service:" << service;
202 FireTokenRequestFailedNotification(service, error);
260 OnIssueAuthTokenSuccess(tok_details->service(), tok_details->token());