| Index: components/reading_list/core/reading_list_switches.cc
|
| diff --git a/components/reading_list/core/reading_list_switches.cc b/components/reading_list/core/reading_list_switches.cc
|
| index 4fa0804a589c8c4c2ac667a973db2515ce55366c..d6aba34c584cd88aaa4551c640e662bd7fea6737 100644
|
| --- a/components/reading_list/core/reading_list_switches.cc
|
| +++ b/components/reading_list/core/reading_list_switches.cc
|
| @@ -6,23 +6,12 @@
|
|
|
| #include "build/build_config.h"
|
| #include "base/command_line.h"
|
| +#include "components/reading_list/core/reading_list_enable_flags.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() {
|
| - // Reading list is only enabled on iOS.
|
| -#if defined(OS_IOS)
|
| - if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableReadingList)) {
|
| - return true;
|
| - }
|
| -#endif
|
| - return false;
|
| + return BUILDFLAG(ENABLE_READING_LIST);
|
| }
|
| } // namespace switches
|
| } // namespace reading_list
|
|
|