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

Side by Side Diff: chrome/browser/chromeos/arc/arc_util.h

Issue 2801173002: arc: Provide API to control Play Store state from autotests (Closed)
Patch Set: nits Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_
7 7
8 // Most utility should be put in components/arc/arc_util.{h,cc}, rather than 8 // Most utility should be put in components/arc/arc_util.{h,cc}, rather than
9 // here. However, some utility implementation requires other modules defined in 9 // here. However, some utility implementation requires other modules defined in
10 // chrome/, so this file contains such utilities. 10 // chrome/, so this file contains such utilities.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 bool IsArcPlayStoreEnabledPreferenceManagedForProfile(const Profile* profile); 64 bool IsArcPlayStoreEnabledPreferenceManagedForProfile(const Profile* profile);
65 65
66 // Enables or disables Google Play Store on ARC. Currently, it is tied to 66 // Enables or disables Google Play Store on ARC. Currently, it is tied to
67 // ARC enabled state, too, so this also should trigger to enable or disable 67 // ARC enabled state, too, so this also should trigger to enable or disable
68 // whole ARC system. 68 // whole ARC system.
69 // If the preference is managed, then no-op. 69 // If the preference is managed, then no-op.
70 // It is requirement for a caller to ensure ARC is allowed for the user of 70 // It is requirement for a caller to ensure ARC is allowed for the user of
71 // the given |profile|. 71 // the given |profile|.
72 // TODO(hidehiko): De-couple the concept to enable ARC system and opt-in 72 // TODO(hidehiko): De-couple the concept to enable ARC system and opt-in
73 // to use Google Play Store. Note that there is a plan to use ARC without 73 // to use Google Play Store. Note that there is a plan to use ARC without
74 // Google Play Store, then ARC can run without opt-in. 74 // Google Play Store, then ARC can run without opt-in. Returns false in case
75 void SetArcPlayStoreEnabledForProfile(Profile* profile, bool enabled); 75 // enabled state of the Play Store cannot be changed.
76 bool SetArcPlayStoreEnabledForProfile(Profile* profile, bool enabled);
76 77
77 // Returns whether all ARC related OptIn preferences (i.e. 78 // Returns whether all ARC related OptIn preferences (i.e.
78 // ArcBackupRestoreEnabled and ArcLocationServiceEnabled) are managed. 79 // ArcBackupRestoreEnabled and ArcLocationServiceEnabled) are managed.
79 bool AreArcAllOptInPreferencesManagedForProfile(const Profile* profile); 80 bool AreArcAllOptInPreferencesManagedForProfile(const Profile* profile);
80 81
81 // Returns whether ARC can run on the filesystem mounted at |path|. 82 // Returns whether ARC can run on the filesystem mounted at |path|.
82 // This function should run only on threads where IO operations are allowed. 83 // This function should run only on threads where IO operations are allowed.
83 bool IsArcCompatibleFilesystem(const base::FilePath& path); 84 bool IsArcCompatibleFilesystem(const base::FilePath& path);
84 85
85 } // namespace arc 86 } // namespace arc
86 87
87 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_ 88 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698