Index: components/arc/arc_prefs.cc |
diff --git a/components/arc/arc_prefs.cc b/components/arc/arc_prefs.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..80cd528ba79bf1e48d025773e0e1be78a8e604fb |
--- /dev/null |
+++ b/components/arc/arc_prefs.cc |
@@ -0,0 +1,31 @@ |
+// 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. |
+ |
+#include "components/arc/arc_prefs.h" |
+ |
+#include "base/prefs/pref_registry_simple.h" |
+#include "base/prefs/pref_service.h" |
+#include "components/arc/arc_pref_names.h" |
+ |
+namespace arc { |
+ |
+// static |
+void ArcPrefs::RegisterProfilePrefs(PrefRegistrySimple* registry) { |
+ DCHECK(registry); |
+ registry->RegisterBooleanPref(arc::prefs::kArcEnabled, false); |
+} |
+ |
+// static |
+bool ArcPrefs::GetEnabled(const PrefService* prefs) { |
+ DCHECK(prefs); |
+ return prefs->GetBoolean(arc::prefs::kArcEnabled); |
+} |
+ |
+// static |
+void ArcPrefs::SetEnabled(PrefService* prefs, bool enabled) { |
+ DCHECK(prefs); |
+ prefs->SetBoolean(arc::prefs::kArcEnabled, enabled); |
+} |
+ |
+} // namespace arc |