Lines Matching refs:account_id

21 const char kAccountKeyPath[] = "account_id";
33 const std::string& account_id);
36 const std::string& account_id() { return account_id_; }
67 const std::string& account_id)
72 account_id_(account_id) {
75 "account_id", account_id);
124 "account_id",
209 const std::string& account_id) {
210 if (ContainsKey(accounts_, account_id))
211 return accounts_[account_id].info;
259 const std::string& account_id) {
262 "account_id",
263 account_id);
264 DVLOG(1) << "AVAILABLE " << account_id;
266 StartTrackingAccount(account_id);
267 AccountState& state = accounts_[account_id];
270 StartFetchingUserInfo(account_id);
274 const std::string& account_id) {
277 "account_id",
278 account_id);
280 DVLOG(1) << "REVOKED " << account_id;
281 StopTrackingAccount(account_id);
297 const std::string& account_id) {
298 if (!ContainsKey(accounts_, account_id)) {
299 DVLOG(1) << "StartTracking " << account_id;
301 state.info.account_id = account_id;
302 accounts_.insert(make_pair(account_id, state));
306 void AccountTrackerService::StopTrackingAccount(const std::string& account_id) {
307 DVLOG(1) << "StopTracking " << account_id;
308 if (ContainsKey(accounts_, account_id)) {
309 AccountState& state = accounts_[account_id];
314 accounts_.erase(account_id);
317 if (ContainsKey(user_info_requests_, account_id))
318 DeleteFetcher(user_info_requests_[account_id]);
322 const std::string& account_id) {
323 if (ContainsKey(user_info_requests_, account_id))
324 DeleteFetcher(user_info_requests_[account_id]);
326 DVLOG(1) << "StartFetching " << account_id;
331 account_id);
332 user_info_requests_[account_id] = fetcher;
339 const std::string& account_id = fetcher->account_id();
340 DCHECK(ContainsKey(accounts_, account_id));
341 AccountState& state = accounts_[account_id];
358 LOG(WARNING) << "Failed to get UserInfo for " << fetcher->account_id();
364 DVLOG(1) << "DeleteFetcher " << fetcher->account_id();
365 const std::string& account_id = fetcher->account_id();
366 DCHECK(ContainsKey(user_info_requests_, account_id));
367 DCHECK_EQ(fetcher, user_info_requests_[account_id]);
368 user_info_requests_.erase(account_id);
379 std::string account_id = base::UTF16ToUTF8(value);
380 StartTrackingAccount(account_id);
381 AccountState& state = accounts_[account_id];
400 base::string16 account_id_16 = base::UTF8ToUTF16(state.info.account_id);
424 base::string16 account_id_16 = base::UTF8ToUTF16(state.info.account_id);