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..5902dcecbab2b7fab0c64f66bd75bb9ae5ceb1f7 |
| --- /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_ |
| + |
|
Yusuke Sato
2017/01/19 22:39:31
I still feel we need a very lengthy document on ho
hidehiko
2017/01/24 17:46:12
Addressed in base CL.
|
| +namespace arc { |
| +namespace util { |
| + |
| +// Returns true if ARC has been enabled through a commandline switch. |
|
Yusuke Sato
2017/01/19 22:39:31
Could you provide a bit more documents? What does
hidehiko
2017/01/24 17:46:12
Added more documentation in another CL.
As for de
|
| +bool IsArcEnabled(); |
|
Yusuke Sato
2017/01/19 22:39:31
Name collision. ArcSessionManager has the same fun
hidehiko
2017/01/24 17:46:12
Now, it should be resolved.
|
| + |
| +// Returns true if ARC is available on the current board. |
|
Yusuke Sato
2017/01/19 22:39:31
When typically do we want to call the utility func
hidehiko
2017/01/24 17:46:12
Acknowledged.
|
| +bool IsArcAvailable(); |
| + |
| +// Returns true if ARC should run under Kiosk mode. |
| +bool IsArcKioskMode(); |
| + |
| +// Checks if OptIn verification was disabled by switch in command line. |
|
Luis Héctor Chávez
2017/01/19 18:09:15
nit: s/OptIn/opt-in/
Yusuke Sato
2017/01/19 22:39:31
Can you mention when typically this returns true?
hidehiko
2017/01/24 17:46:12
Done.
hidehiko
2017/01/24 17:46:12
Hmmm, I guess rather than mentioning commandline f
|
| +bool IsOptInVerificationDisabled(); |
|
Luis Héctor Chávez
2017/01/19 18:09:15
nit: IsArcOptInVerificationDisabled()? That'll bri
hidehiko
2017/01/24 17:46:12
Done.
|
| + |
|
Yusuke Sato
2017/01/19 22:39:31
Having 'void EnableArcForTesting()' (or a better n
hidehiko
2017/01/24 17:46:12
As written in another CL's TODO comment, let me wo
Yusuke Sato
2017/01/24 20:36:58
Eh.. where is the TODO? I think I'm lost..
|
| +} // namespace util |
| +} // namespace arc |
| + |
| +#endif // COMPONENTS_ARC_ARC_UTIL_H_ |