Lines Matching defs:User
49 // Incognito user is represented by an empty string (since some code already
62 DVLOG(1) << "Saving path to user image in Local State.";
92 // Deletes user's image file. Runs on FILE thread.
96 LOG(ERROR) << "Failed to remove user image.";
101 // Updates current user ownership on UI thread.
116 // Checks current user's ownership on file thread.
120 VLOG(1) << "Current user " << (is_owner ? "is owner" : "is not owner");
134 // Creates new remove attempt for the given user. Note, |delegate| can
200 UserManager::User::User() {
205 UserManager::User::~User() {}
207 std::string UserManager::User::GetDisplayName() const {
215 std::string UserManager::User::GetNameTooltip() const {
243 std::vector<UserManager::User> UserManager::GetUsers() const {
244 std::vector<User> users;
258 User user;
259 user.set_email(email);
269 user.set_image(
272 user_images_[email] = user.image();
276 user_images_[email] = user.image();
281 user.set_image(image_it->second);
283 users.push_back(user);
292 logged_in_user_ = User();
309 std::vector<User> users = GetUsers();
317 logged_in_user_ = User();
320 // Make sure this user is first.
322 for (std::vector<User>::iterator it = users.begin();
326 // Skip the most recent user.
342 std::vector<User> users = GetUsers();
344 // Sanity check: we must not remove single user. This check may seem
345 // redundant at a first sight because this single user must be an owner and
364 std::vector<User> users = GetUsers();
371 for (std::vector<User>::iterator it = users.begin();
375 // Skip user that we would like to delete.
399 std::vector<User> users = GetUsers();
400 for (std::vector<User>::iterator it = users.begin();
410 const UserManager::User& UserManager::logged_in_user() const {
430 DVLOG(1) << "Saving user image to " << image_path.value();
513 User user;
514 user.set_email(username);
515 user.set_image(image);
523 Details<const User>(&user));
583 Details<const User>(&logged_in_user_));
587 // Shut down the IME so that it will reload the user's settings.
592 // Ensure we've opened the real user's key/certificate database.
603 // Schedules current user ownership check on file thread.