Chromium Code Reviews| Index: components/arc/arc_util.h |
| diff --git a/components/arc/arc_util.h b/components/arc/arc_util.h |
| index a9e69d36878ecbaae809ccdd1c2cb6a630a5eed6..2696b62d84844552b3b7aa33d20c23bb72a2710c 100644 |
| --- a/components/arc/arc_util.h |
| +++ b/components/arc/arc_util.h |
| @@ -13,6 +13,10 @@ namespace base { |
| class CommandLine; |
| } // namespace base |
| +namespace user_manager { |
| +class User; |
| +} |
|
hidehiko
2017/05/17 02:09:45
nit: // namespace user_manager
for consistency.
xiyuan
2017/05/17 21:36:14
Done.
|
| + |
| namespace arc { |
| // Returns true if ARC is installed and the current device is officially |
| @@ -58,6 +62,13 @@ void SetArcAvailableCommandLineForTesting(base::CommandLine* command_line); |
| // should also return true in that case. |
| bool IsArcKioskMode(); |
| +// 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 |
| +// as a secondary user or signs in to create a supervised user, ARC should be |
| +// disabled for such cases. |
| +bool IsArcAllowedForUser(const user_manager::User* user); |
| + |
| // Returns true if it is allowed to use ARC with Active Directory managed |
| // devices. |
| bool IsArcAllowedForActiveDirectoryUsers(); |