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

Unified Diff: chrome/browser/chromeos/login/users/fake_chrome_user_manager.h

Issue 2832903002: cros: Remove supervised user methods from SystemTrayDelegate (Closed)
Patch Set: ready Created 3 years, 8 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: chrome/browser/chromeos/login/users/fake_chrome_user_manager.h
diff --git a/chrome/browser/chromeos/login/users/fake_chrome_user_manager.h b/chrome/browser/chromeos/login/users/fake_chrome_user_manager.h
index 0e814ae9eb20e0ccaa7cf1d6fa1f0a54c03a1d8c..596c121b370c934903fd91c45219da48853e9984 100644
--- a/chrome/browser/chromeos/login/users/fake_chrome_user_manager.h
+++ b/chrome/browser/chromeos/login/users/fake_chrome_user_manager.h
@@ -28,15 +28,17 @@ class FakeChromeUserManager : public ChromeUserManager {
FakeChromeUserManager();
~FakeChromeUserManager() override;
- // Create and add a kiosk app user.
+ // Create and add various types of users.
user_manager::User* AddKioskAppUser(const AccountId& account_id);
user_manager::User* AddArcKioskAppUser(const AccountId& account_id);
-
- // Create and add a public account user.
+ user_manager::User* AddSupervisedUser(const AccountId& account_id);
const user_manager::User* AddPublicAccountUser(const AccountId& account_id);
// Calculates the user name hash and calls UserLoggedIn to login a user.
- void LoginUser(const AccountId& account_id);
+ // |set_profile_created| forces the user to have its profile marked created.
+ // NOTE: This does not match production, which creates the profile later.
+ // However, many tests rely on this behavior.
+ void LoginUser(const AccountId& account_id, bool set_profile_created = true);
const user_manager::User* AddUser(const AccountId& account_id);
const user_manager::User* AddUserWithAffiliation(const AccountId& account_id,

Powered by Google App Engine
This is Rietveld 408576698