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/macros.h" |
| 9 |
| 10 class PrefRegistrySimple; |
| 11 class PrefService; |
| 12 |
| 13 namespace arc { |
| 14 |
| 15 // Specifies ARC preferences. |
| 16 class ArcPrefs { |
| 17 public: |
| 18 // Registers ARC related preferences. |
| 19 static void RegisterProfilePrefs(PrefRegistrySimple* registry); |
| 20 |
| 21 // Returns true if ARC has been enabled. |
| 22 static bool GetEnabled(const PrefService* prefs); |
| 23 |
| 24 // Sets kArcEnabled preference to the specified value. |
| 25 static void SetEnabled(PrefService* prefs, bool enabled); |
| 26 |
| 27 private: |
| 28 DISALLOW_IMPLICIT_CONSTRUCTORS(ArcPrefs); |
| 29 }; |
| 30 |
| 31 }; // namespace arc |
| 32 |
| 33 #endif // COMPONENTS_ARC_ARC_PREFS_H_ |
OLD | NEW |