Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_ARC_ARC_UTIL_H_ | |
| 6 #define COMPONENTS_ARC_ARC_UTIL_H_ | |
| 7 | |
| 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, | |
| 10 // users' preferences, and FeatureList. | |
| 11 | |
| 12 namespace arc { | |
| 13 | |
| 14 // Returns true if the current device has ARC installed and has the capability | |
|
Yusuke Sato
2017/01/24 19:02:44
nit: the term "capability" seems ambiguous to me.
hidehiko
2017/01/25 17:54:47
Done.
| |
| 15 // of running it. | |
| 16 // Note that, to run ARC practically, it is necessary to meet more conditions, | |
| 17 // e.g., ARC supports only on Primary User Profile. To see if ARC can actually | |
| 18 // run for the profile etc., arc::ArcSessionManager::IsAllowedForProfile() is | |
| 19 // the function for that purpose. Please see also its comment, too. | |
| 20 // Also note that, ARC singleton classes (e.g. ArcSessionManager, | |
| 21 // ArcServiceManager, ArcServiceLauncher) are instantiated regardless of this | |
| 22 // check, so it is ok to access them directly. | |
| 23 bool IsArcAvailable(); | |
| 24 | |
| 25 } // namespace arc | |
| 26 | |
| 27 #endif // COMPONENTS_ARC_ARC_UTIL_H_ | |
| OLD | NEW |