Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: components/arc/arc_util.h

Issue 2642783003: Move more utility functions to arc_util. (Closed)
Patch Set: address review comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.
11 11
12 namespace arc { 12 namespace arc {
13 13
14 // Returns true if the current device installs ARC and can run it. 14 // Returns true if the current device installs ARC and can run it.
15 // Note that, to run ARC practically, it is necessary to meet more conditions, 15 // Note that, to run ARC practically, it is necessary to meet more conditions,
16 // e.g., ARC supports only on Primary User Profile. To see if ARC can actually 16 // e.g., ARC supports only on Primary User Profile. To see if ARC can actually
17 // run for the profile etc., arc::ArcSessionManager::IsAllowedForProfile() is 17 // run for the profile etc., arc::ArcSessionManager::IsAllowedForProfile() is
18 // the function for that purpose. Please see also its comment, too. 18 // the function for that purpose. Please see also its comment, too.
19 // Also note that, ARC singleton classes (e.g. ArcSessionManager, 19 // Also note that, ARC singleton classes (e.g. ArcSessionManager,
20 // ArcServiceManager, ArcServiceLauncher) are instanciated regardless of this 20 // ArcServiceManager, ArcServiceLauncher) are instanciated regardless of this
21 // check, so it is ok to access them directly. 21 // check, so it is ok to access them directly.
22 bool IsArcAvailable(); 22 bool IsArcAvailable();
23 23
24 // Returns true if ARC should run under Kiosk mode.
25 bool IsArcKioskMode();
26
27 // Checks if opt-in verification was disabled by switch in command line.
28 // In most cases, this is for testing purpose.
Yusuke Sato 2017/01/24 20:36:59 "this is disabled" ?
hidehiko 2017/01/31 13:07:51 Done.
29 bool IsArcOptInVerificationDisabled();
30
24 } // namespace arc 31 } // namespace arc
25 32
26 #endif // COMPONENTS_ARC_ARC_UTIL_H_ 33 #endif // COMPONENTS_ARC_ARC_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698