Home
last modified time | relevance | path

Searched refs:user_id (Results 1 – 25 of 217) sorted by relevance

123456789

/external/chromium_org/components/user_manager/
Duser_manager_base.cc158 void UserManagerBase::UserLoggedIn(const std::string& user_id, in UserLoggedIn() argument
168 User* user = FindUserInListAndModify(user_id); in UserLoggedIn()
182 if (user_id == chromeos::login::kGuestUserName) { in UserLoggedIn()
184 } else if (user_id == chromeos::login::kRetailModeUserName) { in UserLoggedIn()
186 } else if (IsKioskApp(user_id)) { in UserLoggedIn()
187 KioskAppLoggedIn(user_id); in UserLoggedIn()
188 } else if (IsDemoApp(user_id)) { in UserLoggedIn()
197 gaia::ExtractDomainName(user_id) == in UserLoggedIn()
199 SupervisedUserLoggedIn(user_id); in UserLoggedIn()
200 } else if (browser_restart && IsPublicAccountMarkedForRemoval(user_id)) { in UserLoggedIn()
[all …]
Duser_manager_base.h51 virtual void UserLoggedIn(const std::string& user_id,
54 virtual void SwitchActiveUser(const std::string& user_id) OVERRIDE;
57 virtual void RemoveUser(const std::string& user_id,
59 virtual void RemoveUserFromList(const std::string& user_id) OVERRIDE;
60 virtual bool IsKnownUser(const std::string& user_id) const OVERRIDE;
61 virtual const User* FindUser(const std::string& user_id) const OVERRIDE;
62 virtual User* FindUserAndModify(const std::string& user_id) OVERRIDE;
69 const std::string& user_id,
71 virtual void SaveForceOnlineSignin(const std::string& user_id,
73 virtual void SaveUserDisplayName(const std::string& user_id,
[all …]
Duser_manager.h141 virtual void UserLoggedIn(const std::string& user_id,
146 virtual void SwitchActiveUser(const std::string& user_id) = 0;
164 virtual void RemoveUser(const std::string& user_id,
169 virtual void RemoveUserFromList(const std::string& user_id) = 0;
173 virtual bool IsKnownUser(const std::string& user_id) const = 0;
177 virtual const User* FindUser(const std::string& user_id) const = 0;
182 virtual User* FindUserAndModify(const std::string& user_id) = 0;
202 const std::string& user_id,
207 virtual void SaveForceOnlineSignin(const std::string& user_id,
212 virtual void SaveUserDisplayName(const std::string& user_id,
[all …]
/external/chromium_org/chrome/browser/chromeos/login/users/
Dsupervised_user_manager_impl.cc226 std::string SupervisedUserManagerImpl::GetUserSyncId(const std::string& user_id) in GetUserSyncId()
229 GetUserStringValue(user_id, kSupervisedUserSyncId, &result); in GetUserSyncId()
234 const std::string& user_id) const { in GetManagerDisplayName()
239 if (manager_names->GetStringWithoutPathExpansion(user_id, &result) && in GetManagerDisplayName()
242 return base::UTF8ToUTF16(GetManagerDisplayEmail(user_id)); in GetManagerDisplayName()
246 const std::string& user_id) const { in GetManagerUserId()
248 GetUserStringValue(user_id, kSupervisedUserManagers, &result); in GetManagerUserId()
253 const std::string& user_id) const { in GetManagerDisplayEmail()
255 if (GetUserStringValue(user_id, in GetManagerDisplayEmail()
260 return GetManagerUserId(user_id); in GetManagerDisplayEmail()
[all …]
Dsupervised_user_manager_impl.h37 virtual std::string GetUserSyncId(const std::string& user_id) const OVERRIDE;
38 virtual base::string16 GetManagerDisplayName(const std::string& user_id) const
40 virtual std::string GetManagerUserId(const std::string& user_id) const
42 virtual std::string GetManagerDisplayEmail(const std::string& user_id) const
46 virtual void SetCreationTransactionUserId(const std::string& user_id)
50 virtual void GetPasswordInformation(const std::string& user_id,
53 const std::string& user_id,
74 void RemoveNonCryptohomeData(const std::string& user_id);
76 bool CheckForFirstRun(const std::string& user_id);
82 bool GetUserStringValue(const std::string& user_id,
[all …]
Dchrome_user_manager_impl.cc183 const std::string& user_id) { in GetUserImageManager() argument
184 UserImageManagerMap::iterator ui = user_image_managers_.find(user_id); in GetUserImageManager()
187 linked_ptr<UserImageManagerImpl> mgr(new UserImageManagerImpl(user_id, this)); in GetUserImageManager()
188 user_image_managers_[user_id] = mgr; in GetUserImageManager()
306 const std::string& user_id, in SaveUserOAuthStatus() argument
309 ChromeUserManager::SaveUserOAuthStatus(user_id, oauth_token_status); in SaveUserOAuthStatus()
311 GetUserFlow(user_id)->HandleOAuthTokenStatusChange(oauth_token_status); in SaveUserOAuthStatus()
315 const std::string& user_id, in SaveUserDisplayName() argument
318 ChromeUserManager::SaveUserDisplayName(user_id, display_name); in SaveUserDisplayName()
322 if (!IsUserNonCryptohomeDataEphemeral(user_id)) in SaveUserDisplayName()
[all …]
Dchrome_user_manager_impl.h70 const std::string& user_id) OVERRIDE;
73 virtual UserFlow* GetUserFlow(const std::string& user_id) const OVERRIDE;
74 virtual void SetUserFlow(const std::string& user_id, UserFlow* flow) OVERRIDE;
75 virtual void ResetUserFlow(const std::string& user_id) OVERRIDE;
84 const std::string& user_id,
86 virtual void SaveUserDisplayName(const std::string& user_id,
90 const std::string& user_id) const OVERRIDE;
100 const std::string& user_id) OVERRIDE;
102 const std::string& user_id) OVERRIDE;
104 const std::string& user_id,
[all …]
Dfake_supervised_user_manager.h31 virtual std::string GetUserSyncId(const std::string& user_id) const OVERRIDE;
32 virtual base::string16 GetManagerDisplayName(const std::string& user_id) const
34 virtual std::string GetManagerUserId(const std::string& user_id) const
36 virtual std::string GetManagerDisplayEmail(const std::string& user_id) const
40 virtual void SetCreationTransactionUserId(const std::string& user_id) in SetCreationTransactionUserId() argument
45 const std::string& user_id, in GetPasswordInformation() argument
48 const std::string& user_id, in SetPasswordInformation() argument
/external/chromium_org/chrome/browser/chromeos/policy/
Dcloud_external_data_policy_observer.cc41 const std::string& user_id,
60 const std::string& user_id, in PolicyServiceObserver() argument
63 user_id_(user_id), in PolicyServiceObserver()
67 if (!IsDeviceLocalAccountUser(user_id, NULL)) { in PolicyServiceObserver()
105 const std::string& user_id) { in OnExternalDataSet() argument
110 const std::string& user_id) { in OnExternalDataCleared() argument
115 const std::string& user_id, in OnExternalDataFetched() argument
178 const std::string& user_id = user->email(); in Observe() local
179 if (ContainsKey(logged_in_user_observers_, user_id)) { in Observe()
186 logged_in_user_observers_[user_id] = make_linked_ptr( in Observe()
[all …]
/external/chromium_org/chrome/browser/chromeos/login/screens/
Dchrome_user_selection_screen.cc59 void ChromeUserSelectionScreen::OnPolicyUpdated(const std::string& user_id) { in OnPolicyUpdated() argument
61 device_local_account_policy_service_->GetBrokerForUser(user_id); in OnPolicyUpdated()
76 const std::string& user_id = broker->user_id(); in CheckForPublicSessionDisplayNameChange() local
78 if (display_name == public_session_display_names_[user_id]) in CheckForPublicSessionDisplayNameChange()
81 public_session_display_names_[user_id] = display_name; in CheckForPublicSessionDisplayNameChange()
88 handler_->SetPublicSessionDisplayName(user_id, display_name); in CheckForPublicSessionDisplayNameChange()
101 user_id)); in CheckForPublicSessionDisplayNameChange()
106 const std::string& user_id = broker->user_id(); in CheckForPublicSessionLocalePolicyChange() local
130 public_session_recommended_locales_[user_id]; in CheckForPublicSessionLocalePolicyChange()
133 SetPublicSessionLocales(user_id, new_recommended_locales); in CheckForPublicSessionLocalePolicyChange()
[all …]
/external/chromium_org/chrome/browser/signin/
Deasy_unlock_auth_attempt.cc54 const std::string& user_id, in EasyUnlockAuthAttempt() argument
58 user_id_(user_id), in EasyUnlockAuthAttempt()
67 bool EasyUnlockAuthAttempt::Start(const std::string& user_id) { in Start() argument
73 if (user_id != user_id_) { in Start()
74 Cancel(user_id); in Start()
79 ScreenlockBridge::Get()->lock_handler()->GetAuthType(user_id); in Start()
82 Cancel(user_id); in Start()
97 void EasyUnlockAuthAttempt::FinalizeUnlock(const std::string& user_id, in FinalizeUnlock() argument
99 if (state_ != STATE_RUNNING || user_id != user_id_) in FinalizeUnlock()
119 void EasyUnlockAuthAttempt::FinalizeSignin(const std::string& user_id, in FinalizeSignin() argument
[all …]
Deasy_unlock_service.cc230 void EasyUnlockService::ResetLocalStateForUser(const std::string& user_id) { in ResetLocalStateForUser() argument
231 DCHECK(!user_id.empty()); in ResetLocalStateForUser()
238 update->RemoveWithoutPathExpansion(user_id, NULL); in ResetLocalStateForUser()
261 const std::string user_id = GetUserEmail(); in SetHardlockState() local
262 if (user_id.empty()) in SetHardlockState()
265 SetHardlockStateForUser(user_id, state); in SetHardlockState()
279 std::string user_id = GetUserEmail(); in GetPersistedHardlockState() local
280 if (user_id.empty()) in GetPersistedHardlockState()
290 if (dict && dict->GetIntegerWithoutPathExpansion(user_id, &state_int)) { in GetPersistedHardlockState()
343 void EasyUnlockService::AttemptAuth(const std::string& user_id) { in AttemptAuth() argument
[all …]
Deasy_unlock_service_signin_chromeos.cc37 const std::string& user_id,
48 const std::string& user_id, in RetryDataLoadOnError() argument
66 base::Bind(&LoadDataForUser, user_id, next_backoff_ms, callback), in RetryDataLoadOnError()
72 const std::string& user_id, in LoadDataForUser() argument
80 chromeos::UserContext(user_id), in LoadDataForUser()
81 base::Bind(&RetryDataLoadOnError, user_id, backoff_ms, callback)); in LoadDataForUser()
175 const std::string& user_id, in RecordEasySignInOutcome() argument
177 DCHECK_EQ(GetUserEmail(), user_id); in RecordEasySignInOutcome()
186 const std::string& user_id) const { in RecordPasswordLoginEvent()
187 DCHECK_EQ(GetUserEmail(), user_id); in RecordPasswordLoginEvent()
[all …]
/external/chromium_org/chrome/browser/chromeos/login/users/wallpaper/
Dwallpaper_manager.h106 bool GetWallpaperFromCache(const std::string& user_id,
109 void SetWallpaperCache(const std::string& user_id,
127 virtual void OnWallpaperAnimationFinished(const std::string& user_id) = 0;
144 PendingWallpaper(const base::TimeDelta delay, const std::string& user_id);
264 void RemoveUserWallpaperInfo(const std::string& user_id);
267 void SetCustomWallpaperOnSanitizedUsername(const std::string& user_id,
276 void SetCustomWallpaper(const std::string& user_id,
296 void SetDefaultWallpaperNow(const std::string& user_id);
299 void SetDefaultWallpaperDelayed(const std::string& user_id);
303 void SetUserWallpaperInfo(const std::string& user_id,
[all …]
Dwallpaper_manager.cc118 const std::string& user_id, in MoveCustomWallpaperDirectory() argument
122 base::FilePath from_path = base_path.Append(user_id); in MoveCustomWallpaperDirectory()
326 const std::string& user_id) in PendingWallpaper() argument
327 : user_id_(user_id), in PendingWallpaper()
449 const std::string& user_id, gfx::ImageSkia* image) { in GetWallpaperFromCache() argument
450 return wallpaper_manager_->GetWallpaperFromCache(user_id, image); in GetWallpaperFromCache()
453 void WallpaperManager::TestApi::SetWallpaperCache(const std::string& user_id, in SetWallpaperCache() argument
456 wallpaper_manager_->wallpaper_cache_[user_id] = image; in SetWallpaperCache()
671 void WallpaperManager::RemoveUserWallpaperInfo(const std::string& user_id) { in RemoveUserWallpaperInfo() argument
673 GetUserWallpaperInfo(user_id, &info); in RemoveUserWallpaperInfo()
[all …]
/external/chromium_org/chrome/browser/chromeos/login/auth/
Dmount_manager.cc28 bool MountManager::IsMounted(const std::string& user_id) { in IsMounted() argument
29 UserToPathMap::iterator i(additional_mounts_.find(user_id)); in IsMounted()
33 base::FilePath MountManager::GetPath(const std::string& user_id) { in GetPath() argument
34 UserToPathMap::iterator i(additional_mounts_.find(user_id)); in GetPath()
39 void MountManager::SetPath(const std::string& user_id, in SetPath() argument
41 additional_mounts_[user_id] = path; in SetPath()
44 void MountManager::DeletePath(const std::string& user_id) { in DeletePath() argument
45 additional_mounts_.erase(user_id); in DeletePath()
/external/chromium_org/chrome/browser/chromeos/login/supervised/
Dsupervised_user_authentication.h64 bool FillDataForNewUser(const std::string& user_id,
71 void StorePasswordData(const std::string& user_id,
74 bool NeedPasswordChange(const std::string& user_id,
78 bool HasScheduledPasswordUpdate(const std::string& user_id);
79 void ClearScheduledPasswordUpdate(const std::string& user_id);
84 bool HasIncompleteKey(const std::string& user_id);
85 void MarkKeyIncomplete(const std::string& user_id, bool incomplete);
88 void LoadPasswordUpdateData(const std::string& user_id,
102 Schema GetPasswordSchema(const std::string& user_id);
Dsupervised_user_login_flow.cc30 const std::string& user_id) in SupervisedUserLoginFlow() argument
31 : ExtendedUserFlow(user_id), in SupervisedUserLoginFlow()
82 if (auth->HasScheduledPasswordUpdate(user_id())) { in ConfigureSync()
84 user_id(), in ConfigureSync()
104 if (!auth->NeedPasswordChange(user_id(), password_data)) { in OnPasswordChangeDataLoaded()
105 VLOG(1) << "Password already changed for " << user_id(); in OnPasswordChangeDataLoaded()
106 auth->ClearScheduledPasswordUpdate(user_id()); in OnPasswordChangeDataLoaded()
144 auth->GetPasswordSchema(user_id()); in OnPasswordChangeDataLoaded()
165 if (auth->HasIncompleteKey(user_id())) { in OnPasswordChangeDataLoaded()
188 auth->StorePasswordData(user_id(), *password_data.get()); in OnNewKeyAdded()
[all …]
Dsupervised_user_authentication.cc128 const std::string& user_id, in FillDataForNewUser() argument
172 const std::string& user_id, in StorePasswordData() argument
175 owner_->GetPasswordInformation(user_id, &holder); in StorePasswordData()
183 owner_->SetPasswordInformation(user_id, &holder); in StorePasswordData()
188 const std::string& user_id) { in GetPasswordSchema() argument
191 owner_->GetPasswordInformation(user_id, &holder); in GetPasswordSchema()
203 const std::string& user_id, in NeedPasswordChange() argument
206 owner_->GetPasswordInformation(user_id, &local); in NeedPasswordChange()
247 const std::string& user_id) { in HasScheduledPasswordUpdate() argument
249 owner_->GetPasswordInformation(user_id, &holder); in HasScheduledPasswordUpdate()
[all …]
/external/chromium_org/chrome/browser/ui/ash/multi_user/
Dmulti_user_window_manager_chromeos.cc193 explicit AppObserver(const std::string& user_id) : user_id_(user_id) {} in AppObserver() argument
268 const std::string& user_id) { in SetWindowOwner() argument
271 DCHECK(!user_id.empty()); in SetWindowOwner()
272 if (GetWindowOwner(window) == user_id) in SetWindowOwner()
275 window_to_entry_[window] = new WindowEntry(user_id); in SetWindowOwner()
309 const std::string& user_id) { in ShowWindowForUser() argument
311 if (!ShowWindowForUserIntern(window, user_id)) in ShowWindowForUser()
316 if (user_id == current_user_id_ || previous_owner != current_user_id_) in ShowWindowForUser()
320 user_id); in ShowWindowForUser()
344 const std::string& user_id) const { in IsWindowOnDesktopOfUser()
[all …]
Dmulti_user_window_manager_chromeos.h77 aura::Window* window, const std::string& user_id) OVERRIDE;
81 aura::Window* window, const std::string& user_id) OVERRIDE;
87 const std::string& user_id) const OVERRIDE;
95 virtual void ActiveUserChanged(const std::string& user_id) OVERRIDE;
129 explicit WindowEntry(const std::string& user_id) in WindowEntry() argument
130 : owner_(user_id), in WindowEntry()
131 show_for_user_(user_id), in WindowEntry()
146 void set_show_for_user(const std::string& user_id) { in set_show_for_user() argument
147 show_for_user_ = user_id.empty() ? owner_ : user_id; in set_show_for_user()
171 const std::string& user_id);
/external/chromium_org/chrome/browser/ui/ash/
Dsession_state_delegate_chromeos.cc65 const std::string& user_id = in GetBrowserContextForWindow() local
68 user_manager::UserManager::Get()->FindUser(user_id); in GetBrowserContextForWindow()
175 const std::string& user_id) { in SwitchActiveUser() argument
178 DCHECK_EQ(user_id, in SwitchActiveUser()
179 gaia::CanonicalizeEmail(gaia::SanitizeEmail(user_id))); in SwitchActiveUser()
180 if (user_id == user_manager::UserManager::Get()->GetActiveUser()->email()) in SwitchActiveUser()
182 TryToSwitchUser(user_id); in SwitchActiveUser()
193 std::string user_id = in CycleActiveUser() local
200 if ((*it)->email() == user_id) in CycleActiveUser()
213 user_id = (*logged_in_users.begin())->email(); in CycleActiveUser()
[all …]
/external/chromium_org/ash/test/
Dtest_session_state_delegate.cc25 std::string user_id = email; in GetUserIDFromEmail() local
26 std::transform(user_id.begin(), user_id.end(), user_id.begin(), ::tolower); in GetUserIDFromEmail()
27 return user_id; in GetUserIDFromEmail()
88 void TestSessionStateDelegate::AddUser(const std::string user_id) { in AddUser() argument
89 user_list_.push_back(new MockUserInfo(user_id)); in AddUser()
211 void TestSessionStateDelegate::SwitchActiveUser(const std::string& user_id) { in SwitchActiveUser() argument
213 EXPECT_EQ(user_id, GetUserIDFromEmail(user_id)); in SwitchActiveUser()
218 if ((*iter)->GetUserID() == user_id) { in SwitchActiveUser()
223 NOTREACHED() << "Unknown user:" << user_id; in SwitchActiveUser()
/external/chromium_org/chrome/browser/supervised_user/chromeos/
Dmanager_password_service.cc30 const std::string& user_id, in Init() argument
33 user_id_ = user_id; in Init()
53 if (user_id != supervised_user_manager->GetManagerUserId((*it)->email())) in Init()
104 const std::string& user_id, in GetSupervisedUsersCallback() argument
115 LOG(WARNING) << "Can not apply password change to " << user_id in GetSupervisedUsersCallback()
129 LOG(WARNING) << "Can not apply password change to " << user_id in GetSupervisedUsersCallback()
138 UserContext manager_key(user_id); in GetSupervisedUsersCallback()
153 LOG(WARNING) << "Can not apply password change to " << user_id in GetSupervisedUsersCallback()
182 user_id, in GetSupervisedUsersCallback()
197 const std::string& user_id, in OnAddKeySuccess() argument
[all …]
/external/chromium_org/chromeos/attestation/
Dattestation_flow.cc99 const std::string& user_id, in GetCertificate() argument
109 user_id, in GetCertificate()
196 const std::string& user_id, in StartCertificateRequest() argument
208 user_id, in StartCertificateRequest()
213 user_id, in StartCertificateRequest()
222 user_id, in StartCertificateRequest()
231 user_id, in StartCertificateRequest()
237 user_id, in StartCertificateRequest()
248 const std::string& user_id, in SendCertificateRequestToPCA() argument
266 user_id, in SendCertificateRequestToPCA()
[all …]

123456789