OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_ARC_ARC_PREFS_H_ |
| 6 #define COMPONENTS_ARC_ARC_PREFS_H_ |
| 7 |
| 8 #include "base/command_line.h" |
| 9 #include "base/macros.h" |
| 10 |
| 11 class PrefRegistrySimple; |
| 12 class PrefService; |
| 13 |
| 14 namespace arc { |
| 15 |
| 16 // Specifies ARC preferences. |
| 17 class ArcPrefs { |
| 18 public: |
| 19 // Registers ARC related preferences. |
| 20 static void RegisterProfilePrefs(PrefRegistrySimple* registry); |
| 21 |
| 22 // Returns true if ARC has been enabled. |
| 23 static bool GetEnabled(const PrefService* prefs, |
| 24 const base::CommandLine* command_line); |
| 25 |
| 26 // Sets kArcEnabled preference to the specified value. |
| 27 static void SetEnabled(PrefService* prefs, bool enabled); |
| 28 |
| 29 private: |
| 30 DISALLOW_IMPLICIT_CONSTRUCTORS(ArcPrefs); |
| 31 }; |
| 32 |
| 33 }; // namespace arc |
| 34 |
| 35 #endif // COMPONENTS_ARC_ARC_PREFS_H_ |
OLD | NEW |