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

Unified Diff: ash/test/test_session_controller_client.h

Issue 2829813002: cros: Move IsUserSupervised and IsUserChild off SystemTrayDelegate (Closed)
Patch Set: review comments 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
« no previous file with comments | « ash/system/user/user_card_view.cc ('k') | ash/test/test_session_controller_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_session_controller_client.h
diff --git a/ash/test/test_session_controller_client.h b/ash/test/test_session_controller_client.h
index 6524a9e77fa616016e8d3f575d1626b9dee8b0bb..7516e6c80ab7309e8fde22c808cb4a3a979149a8 100644
--- a/ash/test/test_session_controller_client.h
+++ b/ash/test/test_session_controller_client.h
@@ -11,6 +11,7 @@
#include "ash/public/interfaces/session_controller.mojom.h"
#include "base/macros.h"
+#include "components/user_manager/user_type.h"
#include "mojo/public/cpp/bindings/binding.h"
class AccountId;
@@ -52,8 +53,10 @@ class TestSessionControllerClient : public ash::mojom::SessionControllerClient {
// Adds a user session from a given display email. The display email will be
// canonicalized and used to construct an AccountId. |enable_settings| sets
// whether web UI settings are allowed.
- void AddUserSession(const std::string& display_email,
- bool enable_settings = true);
+ void AddUserSession(
+ const std::string& display_email,
+ user_manager::UserType user_type = user_manager::USER_TYPE_REGULAR,
+ bool enable_settings = true);
// Simulates screen unlocking. It is virtual so that test cases can override
// it. The default implementation sets the session state of SessionController
« no previous file with comments | « ash/system/user/user_card_view.cc ('k') | ash/test/test_session_controller_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698