| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_ARC_ARC_UTIL_H_ | 5 #ifndef COMPONENTS_ARC_ARC_UTIL_H_ |
| 6 #define COMPONENTS_ARC_ARC_UTIL_H_ | 6 #define COMPONENTS_ARC_ARC_UTIL_H_ |
| 7 | 7 |
| 8 // This file contains utility to see ARC functionality status controlled by | 8 // This file contains utility to see ARC functionality status controlled by |
| 9 // outside of ARC, e.g. CommandLine flag, attribute of global data/state, | 9 // outside of ARC, e.g. CommandLine flag, attribute of global data/state, |
| 10 // users' preferences, and FeatureList. | 10 // users' preferences, and FeatureList. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // For testing ARC in browser tests, this function should be called in | 29 // For testing ARC in browser tests, this function should be called in |
| 30 // SetUpCommandLine(), and its argument should be passed to this function. | 30 // SetUpCommandLine(), and its argument should be passed to this function. |
| 31 // Also, in unittests, this can be called in SetUp() with | 31 // Also, in unittests, this can be called in SetUp() with |
| 32 // base::CommandLine::ForCurrentProcess(). | 32 // base::CommandLine::ForCurrentProcess(). |
| 33 // |command_line| must not be nullptr. | 33 // |command_line| must not be nullptr. |
| 34 void SetArcAvailableCommandLineForTesting(base::CommandLine* command_line); | 34 void SetArcAvailableCommandLineForTesting(base::CommandLine* command_line); |
| 35 | 35 |
| 36 // Returns true if ARC should run under Kiosk mode. | 36 // Returns true if ARC should run under Kiosk mode. |
| 37 bool IsArcKioskMode(); | 37 bool IsArcKioskMode(); |
| 38 | 38 |
| 39 // Returns true if it is allowed to use ARC with Active Directory managed |
| 40 // devices. |
| 41 bool IsArcAllowedForActiveDirectoryUsers(); |
| 42 |
| 39 // Checks if opt-in verification was disabled by switch in command line. | 43 // Checks if opt-in verification was disabled by switch in command line. |
| 40 // In most cases, it is disabled for testing purpose. | 44 // In most cases, it is disabled for testing purpose. |
| 41 bool IsArcOptInVerificationDisabled(); | 45 bool IsArcOptInVerificationDisabled(); |
| 42 | 46 |
| 43 } // namespace arc | 47 } // namespace arc |
| 44 | 48 |
| 45 #endif // COMPONENTS_ARC_ARC_UTIL_H_ | 49 #endif // COMPONENTS_ARC_ARC_UTIL_H_ |
| OLD | NEW |