Chromium Code Reviews| Index: components/arc/arc_util.h |
| diff --git a/components/arc/arc_util.h b/components/arc/arc_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..46c43454a8d1e1e286dd70ea98836293eb6edaa8 |
| --- /dev/null |
| +++ b/components/arc/arc_util.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_ARC_ARC_UTIL_H_ |
| +#define COMPONENTS_ARC_ARC_UTIL_H_ |
| + |
| +// This file contains utility to see ARC functionality status controlled by |
| +// outside of ARC, e.g. CommandLine flag, attribute of global data/state, |
| +// users' preferences, and FeatureList. |
| + |
| +namespace arc { |
| + |
| +// 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.
|
| +// of running it. |
| +// Note that, to run ARC practically, it is necessary to meet more conditions, |
| +// e.g., ARC supports only on Primary User Profile. To see if ARC can actually |
| +// run for the profile etc., arc::ArcSessionManager::IsAllowedForProfile() is |
| +// the function for that purpose. Please see also its comment, too. |
| +// Also note that, ARC singleton classes (e.g. ArcSessionManager, |
| +// ArcServiceManager, ArcServiceLauncher) are instantiated regardless of this |
| +// check, so it is ok to access them directly. |
| +bool IsArcAvailable(); |
| + |
| +} // namespace arc |
| + |
| +#endif // COMPONENTS_ARC_ARC_UTIL_H_ |