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..bb25a138c527c710376b9f891b787c5459e1ddc7 |
| --- /dev/null |
| +++ b/components/arc/arc_util.h |
| @@ -0,0 +1,26 @@ |
| +// 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 installs ARC and can run it. |
|
Luis Héctor Chávez
2017/01/24 17:00:37
nit: "if the current device has ARC installed and
hidehiko
2017/01/24 18:05:56
Done.
|
| +// 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 instanciated regardless of this |
|
Luis Héctor Chávez
2017/01/24 17:00:37
nit: s/instanciated/instantiated/
hidehiko
2017/01/24 18:05:56
Done.
|
| +// check, so it is ok to access them directly. |
| +bool IsArcAvailable(); |
| + |
| +} // namespace arc |
| + |
| +#endif // COMPONENTS_ARC_ARC_UTIL_H_ |