Index: components/reading_list/reading_list_switches.cc |
diff --git a/components/reading_list/reading_list_switches.cc b/components/reading_list/reading_list_switches.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f1a44446697de0efbd209c8f9c023ed157579f43 |
--- /dev/null |
+++ b/components/reading_list/reading_list_switches.cc |
@@ -0,0 +1,24 @@ |
+// Copyright 2016 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/reading_list/reading_list_switches.h" |
+ |
+#include "base/command_line.h" |
+ |
+namespace reading_list { |
+namespace switches { |
+// Enables the reading list. |
+const char kEnableReadingList[] = "enable-reading-list"; |
+ |
+// Disables the reading list. |
+const char kDisableReadingList[] = "disable-reading-list"; |
+ |
+bool IsReadingListEnabled() { |
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableReadingList)) { |
+ return true; |
+ } |
+ return false; |
+} |
+} // namespace switches |
+} // namespace reading_list |