| Index: components/reading_list/core/reading_list_switches.cc
|
| diff --git a/components/reading_list/reading_list_switches.cc b/components/reading_list/core/reading_list_switches.cc
|
| similarity index 79%
|
| rename from components/reading_list/reading_list_switches.cc
|
| rename to components/reading_list/core/reading_list_switches.cc
|
| index f1a44446697de0efbd209c8f9c023ed157579f43..4fa0804a589c8c4c2ac667a973db2515ce55366c 100644
|
| --- a/components/reading_list/reading_list_switches.cc
|
| +++ b/components/reading_list/core/reading_list_switches.cc
|
| @@ -2,8 +2,9 @@
|
| // 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 "components/reading_list/core/reading_list_switches.h"
|
|
|
| +#include "build/build_config.h"
|
| #include "base/command_line.h"
|
|
|
| namespace reading_list {
|
| @@ -15,9 +16,12 @@ const char kEnableReadingList[] = "enable-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;
|
| }
|
| } // namespace switches
|
|
|