OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 #include "components/reading_list/reading_list_switches.h" |
| 6 |
| 7 #include "base/command_line.h" |
| 8 |
| 9 namespace reading_list { |
| 10 namespace switches { |
| 11 // Enables the reading list. |
| 12 const char kEnableReadingList[] = "enable-reading-list"; |
| 13 |
| 14 // Disables the reading list. |
| 15 const char kDisableReadingList[] = "disable-reading-list"; |
| 16 |
| 17 bool IsReadingListEnabled() { |
| 18 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableReadingList)) { |
| 19 return true; |
| 20 } |
| 21 return false; |
| 22 } |
| 23 } // namespace switches |
| 24 } // namespace reading_list |
OLD | NEW |