Index: components/arc/arc_prefs.h |
diff --git a/components/arc/arc_prefs.h b/components/arc/arc_prefs.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0ca742b36f1d08ea5ac7ca15301cf485d4f68644 |
--- /dev/null |
+++ b/components/arc/arc_prefs.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2015 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_PREFS_H_ |
+#define COMPONENTS_ARC_ARC_PREFS_H_ |
+ |
+#include "base/command_line.h" |
+#include "base/macros.h" |
+ |
+class PrefRegistrySimple; |
+class PrefService; |
+ |
+namespace arc { |
+ |
+// Specifies ARC preferences. |
+class ArcPrefs { |
+ public: |
+ // Registers ARC related preferences. |
+ static void RegisterProfilePrefs(PrefRegistrySimple* registry); |
+ |
+ // Returns true if ARC has been enabled. |
+ static bool GetEnabled(const PrefService* prefs, |
+ const base::CommandLine* command_line); |
+ |
+ // Sets kArcEnabled preference to the specified value. |
+ static void SetEnabled(PrefService* prefs, bool enabled); |
+ |
+ private: |
+ DISALLOW_IMPLICIT_CONSTRUCTORS(ArcPrefs); |
+}; |
+ |
+}; // namespace arc |
+ |
+#endif // COMPONENTS_ARC_ARC_PREFS_H_ |