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

Unified Diff: components/arc/arc_prefs.h

Issue 1412863004: arc-bridge: Add the ARC Bridge Service (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Addressed feedback and fixed failing tests Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698