Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1673)

Unified Diff: components/user_manager/fake_user_manager.cc

Issue 2711113003: Track whether a given user session has completed initialization, and use (Closed)
Patch Set: Added tests. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/user_manager/fake_user_manager.cc
diff --git a/components/user_manager/fake_user_manager.cc b/components/user_manager/fake_user_manager.cc
index f05eb58709b864bd5feca9a513decaf83323e6cd..daa088e9883038365ed833bfe8b422eb10605438 100644
--- a/components/user_manager/fake_user_manager.cc
+++ b/components/user_manager/fake_user_manager.cc
@@ -54,6 +54,10 @@ const user_manager::User* FakeUserManager::AddUserWithAffiliation(
return user;
}
+void FakeUserManager::OnSessionInitialized(User* user) {
+ user->set_session_initialized(true);
+}
+
void FakeUserManager::RemoveUserFromList(const AccountId& account_id) {
const user_manager::UserList::iterator it =
std::find_if(users_.begin(), users_.end(),

Powered by Google App Engine
This is Rietveld 408576698