Index: components/arc/arc_util.h |
diff --git a/components/arc/arc_util.h b/components/arc/arc_util.h |
index d653b5ac43d054694f3efc53aa20fa11a76e8750..44873248630ab06afe792f566165901098a40b1b 100644 |
--- a/components/arc/arc_util.h |
+++ b/components/arc/arc_util.h |
@@ -66,6 +66,11 @@ void SetArcAvailableCommandLineForTesting(base::CommandLine* command_line); |
// should also return true in that case. |
bool IsArcKioskMode(); |
+// Returns true if current user is a public session. |
+// In that case ARC should also be started if available, using the same |
+// authentication flow as ARC Kiosk mode. |
+bool IsPublicSessionMode(); |
hidehiko
2017/06/08 12:02:27
(Optional) Looks not ARC specific?
I'm ok to keep
Sergey Poromov
2017/06/08 13:56:18
The check is not ARC specific, but is designed to
|
+ |
// Returns true if ARC is allowed for the given user. Note this should not be |
// used as a signal of whether ARC is allowed alone because it only considers |
// user meta data. e.g. a user could be allowed for ARC but if the user signs in |