Index: ios/chrome/browser/experimental_flags.mm |
diff --git a/ios/chrome/browser/experimental_flags.mm b/ios/chrome/browser/experimental_flags.mm |
index bb892718ab5383383992dffbbb52d346aa9ca442..c8ad332a1bef4a9d20da618791f02883a2d4bf44 100644 |
--- a/ios/chrome/browser/experimental_flags.mm |
+++ b/ios/chrome/browser/experimental_flags.mm |
@@ -16,6 +16,7 @@ |
#include "base/metrics/field_trial.h" |
#include "base/strings/string_util.h" |
#include "components/autofill/core/common/autofill_switches.h" |
+#include "components/reading_list/reading_list_switches.h" |
#include "components/variations/variations_associated_data.h" |
#include "ios/chrome/browser/chrome_switches.h" |
#include "ios/web/public/web_view_creation_util.h" |
@@ -102,12 +103,7 @@ bool IsTabSwitcherEnabled() { |
} |
bool IsReadingListEnabled() { |
- // Check if the experimental flag is forced on or off. |
- base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
- if (command_line->HasSwitch(switches::kEnableReadingList)) { |
- return true; |
- } |
- return false; |
+ return reading_list::switches::IsReadingListEnabled(); |
} |
bool IsAllBookmarksEnabled() { |