Home
last modified time | relevance | path

Searched refs:account_id (Results 1 – 25 of 107) sorted by relevance

12345

/external/chromium_org/chrome/browser/signin/
Dprofile_oauth2_token_service.cc33 std::string ApplyAccountIdPrefix(const std::string& account_id) { in ApplyAccountIdPrefix() argument
34 return kAccountIdPrefix + account_id; in ApplyAccountIdPrefix()
42 RevokeServerRefreshToken(const std::string& account_id,
78 const std::string& account_id, in AccountInfo() argument
81 account_id_(account_id), in AccountInfo()
140 const std::string& account_id) { in GetRefreshToken() argument
141 AccountInfoMap::const_iterator iter = refresh_tokens_.find(account_id); in GetRefreshToken()
152 const std::string& account_id, in UpdateAuthError() argument
165 if (refresh_tokens_.count(account_id) == 0) { in UpdateAuthError()
166 refresh_tokens_[account_id].reset( in UpdateAuthError()
[all …]
Dmutable_profile_oauth2_token_service.cc25 bool IsLegacyServiceId(const std::string& account_id) { in IsLegacyServiceId() argument
26 return account_id.compare(0u, kAccountIdPrefixLength, kAccountIdPrefix) != 0; in IsLegacyServiceId()
78 std::string account_id = GetPrimaryAccountId(); in OnWebDataServiceRequestDone() local
83 if (!account_id.empty() && refresh_tokens().count(account_id) == 0) { in OnWebDataServiceRequestDone()
84 refresh_tokens()[account_id].reset( in OnWebDataServiceRequestDone()
85 new AccountInfo(this, account_id, std::string())); in OnWebDataServiceRequestDone()
90 if (!account_id.empty() && !RefreshTokenIsAvailable(account_id)) { in OnWebDataServiceRequestDone()
92 account_id, in OnWebDataServiceRequestDone()
119 std::string account_id = RemoveAccountIdPrefix(prefixed_account_id); in LoadAllCredentialsIntoMemory() local
120 refresh_tokens()[account_id].reset( in LoadAllCredentialsIntoMemory()
[all …]
Dfake_profile_oauth2_token_service.cc31 const std::string& account_id) { in RefreshTokenIsAvailable() argument
32 return !GetRefreshToken(account_id).empty(); in RefreshTokenIsAvailable()
36 const std::string& account_id, in UpdateCredentials() argument
38 IssueRefreshTokenForUser(account_id, refresh_token); in UpdateCredentials()
47 const std::string& account_id, in IssueRefreshTokenForUser() argument
51 FireRefreshTokenRevoked(account_id); in IssueRefreshTokenForUser()
53 FireRefreshTokenAvailable(account_id); in IssueRefreshTokenForUser()
107 const std::string& account_id) { in GetRefreshToken() argument
134 const std::string& account_id, in FetchOAuth2Token() argument
140 pending_request.account_id = account_id; in FetchOAuth2Token()
[all …]
Dandroid_profile_oauth2_token_service.cc79 const std::string& account_id) { in RefreshTokenIsAvailable() argument
82 ConvertUTF8ToJavaString(env, account_id); in RefreshTokenIsAvailable()
105 const std::string& account_id, in FetchOAuth2Token() argument
111 DCHECK(!account_id.empty()); in FetchOAuth2Token()
116 ConvertUTF8ToJavaString(env, account_id); in FetchOAuth2Token()
136 const std::string& account_id, in InvalidateOAuth2Token() argument
140 OAuth2TokenService::InvalidateOAuth2Token(account_id, in InvalidateOAuth2Token()
197 std::string account_id = ConvertJavaStringToUTF8(env, account_name); in FireRefreshTokenAvailableFromJava() local
198 AndroidProfileOAuth2TokenService::FireRefreshTokenAvailable(account_id); in FireRefreshTokenAvailableFromJava()
202 const std::string& account_id) { in FireRefreshTokenAvailable() argument
[all …]
Dprofile_oauth2_token_service_request.cc30 const std::string& account_id,
55 const std::string& account_id,
97 const std::string& account_id, in Start() argument
102 StartOnUIThread(account_id, scopes); in Start()
108 this, account_id, scopes)); in Start()
139 const std::string& account_id, in StartOnUIThread() argument
147 account_id.empty() ? service->GetPrimaryAccountId() : account_id; in StartOnUIThread()
199 const std::string& account_id, in CreateAndStart() argument
202 return new ProfileOAuth2TokenServiceRequest(profile, account_id, scopes, in CreateAndStart()
208 const std::string& account_id, in ProfileOAuth2TokenServiceRequest() argument
[all …]
Dfake_profile_oauth2_token_service.h55 std::string account_id; member
67 const std::string& account_id) OVERRIDE;
71 virtual void UpdateCredentials(const std::string& account_id,
81 void IssueRefreshTokenForUser(const std::string& account_id,
109 const std::string& account_id,
115 virtual void InvalidateOAuth2Token(const std::string& account_id,
120 virtual std::string GetRefreshToken(const std::string& account_id) OVERRIDE;
Dprofile_oauth2_token_service.h62 virtual void UpdateCredentials(const std::string& account_id,
66 void RevokeCredentials(const std::string& account_id);
85 const std::string& account_id,
117 virtual std::string GetRefreshToken(const std::string& account_id) OVERRIDE;
125 const std::string& account_id,
130 virtual void PersistCredentials(const std::string& account_id,
135 virtual void ClearPersistedCredentials(const std::string& account_id);
Daccount_reconcilor.cc149 void AccountReconcilor::OnRefreshTokenAvailable(const std::string& account_id) { in OnRefreshTokenAvailable() argument
150 DVLOG(1) << "AccountReconcilor::OnRefreshTokenAvailable: " << account_id; in OnRefreshTokenAvailable()
151 PerformMergeAction(account_id); in OnRefreshTokenAvailable()
154 void AccountReconcilor::OnRefreshTokenRevoked(const std::string& account_id) { in OnRefreshTokenRevoked() argument
155 DVLOG(1) << "AccountReconcilor::OnRefreshTokenRevoked: " << account_id; in OnRefreshTokenRevoked()
156 PerformRemoveAction(account_id); in OnRefreshTokenRevoked()
161 void AccountReconcilor::PerformMergeAction(const std::string& account_id) { in PerformMergeAction() argument
164 helper->LogIn(account_id); in PerformMergeAction()
167 void AccountReconcilor::PerformRemoveAction(const std::string& account_id) { in PerformRemoveAction() argument
Dandroid_profile_oauth2_token_service.h40 const std::string& account_id) OVERRIDE;
78 const std::string& account_id,
86 virtual void InvalidateOAuth2Token(const std::string& account_id,
93 const std::string& account_id) OVERRIDE;
95 virtual void FireRefreshTokenRevoked(const std::string& account_id) OVERRIDE;
Dgoogle_auto_login_helper_unittest.cc20 UbertokenFetcher(profile, consumer), account_id("") {} in MockUbertokenFetcher()
23 OnUberAuthTokenSuccess("mock token: " + account_id); in completePendingRequest()
27 account_id = id; in StartFetchingToken()
30 std::string account_id; member in __anonce3d714b0111::MockUbertokenFetcher
Dsignin_header_helper.cc94 std::string account_id(io_data->google_services_account_id()->GetValue()); in AppendMirrorRequestHeaderIfPossible() local
95 if (account_id.empty()) in AppendMirrorRequestHeaderIfPossible()
96 account_id = "1"; // Dummy value if focus ID not available yet. in AppendMirrorRequestHeaderIfPossible()
99 kChromeConnectedHeader, account_id, false); in AppendMirrorRequestHeaderIfPossible()
Daccount_reconcilor.h58 void PerformMergeAction(const std::string& account_id);
59 void PerformRemoveAction(const std::string& account_id);
81 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE;
82 virtual void OnRefreshTokenRevoked(const std::string& account_id) OVERRIDE;
Dsignin_account_id_helper.cc90 const std::string& account_id) { in OnGetUserIdResponse() argument
91 signin_account_id_helper_->OnPrimaryAccountIdFetched(account_id); in OnGetUserIdResponse()
145 const std::string& account_id) { in OnPrimaryAccountIdFetched() argument
146 if (!account_id.empty()) { in OnPrimaryAccountIdFetched()
148 prefs::kGoogleServicesUserAccountId, account_id); in OnPrimaryAccountIdFetched()
/external/chromium_org/google_apis/gaia/
Doauth2_token_service.cc24 const std::string& account_id, in RequestParameters() argument
27 account_id(account_id), in RequestParameters()
41 if (account_id < p.account_id) in operator <()
43 else if (p.account_id < account_id) in operator <()
50 const std::string& account_id, in RequestImpl() argument
52 : account_id_(account_id), in RequestImpl()
111 const std::string& account_id,
145 const std::string& account_id,
190 const std::string& account_id, in CreateAndStart() argument
199 account_id, in CreateAndStart()
[all …]
Doauth2_token_service.h87 virtual void OnRefreshTokenAvailable(const std::string& account_id) {} in OnRefreshTokenAvailable() argument
90 virtual void OnRefreshTokenRevoked(const std::string& account_id) {} in OnRefreshTokenRevoked() argument
115 scoped_ptr<Request> StartRequest(const std::string& account_id,
123 const std::string& account_id,
133 const std::string& account_id,
144 virtual bool RefreshTokenIsAvailable(const std::string& account_id);
151 void InvalidateToken(const std::string& account_id,
157 void InvalidateTokenForClient(const std::string& account_id,
169 const std::string& account_id,
181 explicit RequestImpl(const std::string& account_id, Consumer* consumer);
[all …]
/external/chromium_org/chrome/browser/chromeos/policy/
Ddevice_local_account.cc31 const std::string& account_id, in DeviceLocalAccount() argument
34 account_id(account_id), in DeviceLocalAccount()
35 user_id(GenerateDeviceLocalAccountUserId(account_id, type)), in DeviceLocalAccount()
42 std::string GenerateDeviceLocalAccountUserId(const std::string& account_id, in GenerateDeviceLocalAccountUserId() argument
57 base::HexEncode(account_id.c_str(), account_id.size()) + "@" + in GenerateDeviceLocalAccountUserId()
101 it->account_id); in SetDeviceLocalAccounts()
134 std::string account_id; in GetDeviceLocalAccounts() local
136 chromeos::kAccountsPrefDeviceLocalAccountsKeyId, &account_id) || in GetDeviceLocalAccounts()
137 account_id.empty()) { in GetDeviceLocalAccounts()
163 if (!account_ids.insert(account_id).second) { in GetDeviceLocalAccounts()
[all …]
Ddevice_local_account_policy_service.cc77 std::string GetCacheSubdirectoryForAccountID(const std::string& account_id) { in GetCacheSubdirectoryForAccountID() argument
78 return base::HexEncode(account_id.c_str(), account_id.size()); in GetCacheSubdirectoryForAccountID()
122 : account_id_(account.account_id), in DeviceLocalAccountPolicyBroker()
127 store_->account_id()), in DeviceLocalAccountPolicyBroker()
136 GetCacheSubdirectoryForAccountID(account.account_id))); in DeviceLocalAccountPolicyBroker()
285 const std::string& account_id) { in IsExtensionCacheDirectoryBusy() argument
286 return busy_extension_cache_directories_.find(account_id) != in IsExtensionCacheDirectoryBusy()
294 !IsExtensionCacheDirectoryBusy(it->second->account_id())) { in StartExtensionCachesIfPossible()
301 const std::string& account_id) { in StartExtensionCacheForAccountIfPresent() argument
304 if (it->second->account_id() == account_id) { in StartExtensionCacheForAccountIfPresent()
[all …]
Ddevice_local_account.h30 const std::string& account_id,
51 std::string account_id; member
56 std::string GenerateDeviceLocalAccountUserId(const std::string& account_id,
/external/chromium_org/chrome/browser/extensions/api/identity/
Dextension_token_key.cc10 const std::string& account_id, in ExtensionTokenKey() argument
12 : extension_id(extension_id), account_id(account_id), scopes(scopes) {} in ExtensionTokenKey()
22 if (account_id < rhs.account_id) in operator <()
24 else if (rhs.account_id < account_id) in operator <()
Daccount_tracker.cc31 void AccountTracker::ReportAuthError(const std::string& account_id, in ReportAuthError() argument
33 account_errors_.insert(make_pair(account_id, error)); in ReportAuthError()
35 UpdateSignInState(account_id, false); in ReportAuthError()
53 void AccountTracker::OnRefreshTokenAvailable(const std::string& account_id) { in OnRefreshTokenAvailable() argument
60 DVLOG(1) << "AVAILABLE " << account_id; in OnRefreshTokenAvailable()
61 ClearAuthError(account_id); in OnRefreshTokenAvailable()
62 UpdateSignInState(account_id, true); in OnRefreshTokenAvailable()
65 void AccountTracker::OnRefreshTokenRevoked(const std::string& account_id) { in OnRefreshTokenRevoked() argument
66 DVLOG(1) << "REVOKED " << account_id; in OnRefreshTokenRevoked()
67 UpdateSignInState(account_id, false); in OnRefreshTokenRevoked()
/external/chromium_org/chromeos/dbus/
Dfake_session_manager_client.cc101 const std::string& account_id, in RetrieveDeviceLocalAccountPolicy() argument
105 base::Bind(callback, device_local_account_policy_[account_id])); in RetrieveDeviceLocalAccountPolicy()
126 const std::string& account_id, in StoreDeviceLocalAccountPolicy() argument
129 device_local_account_policy_[account_id] = policy_blob; in StoreDeviceLocalAccountPolicy()
160 const std::string& account_id) const { in device_local_account_policy()
162 device_local_account_policy_.find(account_id); in device_local_account_policy()
168 const std::string& account_id, in set_device_local_account_policy() argument
170 device_local_account_policy_[account_id] = policy_blob; in set_device_local_account_policy()
/external/chromium_org/google_apis/drive/
Dauth_service.cc34 const std::string& account_id,
57 const std::string& account_id, in AuthRequest() argument
65 account_id, in AuthRequest()
124 const std::string& account_id, in AuthService() argument
128 account_id_(account_id), in AuthService()
222 void AuthService::OnRefreshTokenAvailable(const std::string& account_id) { in OnRefreshTokenAvailable() argument
226 void AuthService::OnRefreshTokenRevoked(const std::string& account_id) { in OnRefreshTokenRevoked() argument
/external/chromium_org/chrome/browser/sync/
Dfake_oauth2_token_service.h22 const std::string& account_id,
28 virtual void PersistCredentials(const std::string& account_id,
32 const std::string& account_id) OVERRIDE;
Dfake_oauth2_token_service.cc13 const std::string& account_id, in FetchOAuth2Token() argument
37 const std::string& account_id, in PersistCredentials() argument
43 const std::string& account_id) { in ClearPersistedCredentials() argument
/external/chromium_org/chrome/browser/chromeos/settings/
Ddevice_oauth2_token_service.cc41 const std::string& account_id,
89 const std::string& account_id, in ValidatingConsumer() argument
91 : OAuth2TokenService::RequestImpl(account_id, this), in ValidatingConsumer()
254 const std::string& account_id) { in GetRefreshToken() argument
281 const std::string& account_id, in CreateRequest() argument
284 return OAuth2TokenService::CreateRequest(account_id, consumer); in CreateRequest()
288 new ValidatingConsumer(this, account_id, consumer)); in CreateRequest()

12345