| Index: ios/chrome/browser/experimental_flags.mm
|
| diff --git a/ios/chrome/browser/experimental_flags.mm b/ios/chrome/browser/experimental_flags.mm
|
| index 5d516a3ca1bca28e42e74a641abeb20a2b17236c..9218e898a40d629ddfbf52486cbba7aba606a721 100644
|
| --- a/ios/chrome/browser/experimental_flags.mm
|
| +++ b/ios/chrome/browser/experimental_flags.mm
|
| @@ -102,4 +102,20 @@ bool IsReadingListEnabled() {
|
| return [[NSUserDefaults standardUserDefaults] boolForKey:kEnableReadingList];
|
| }
|
|
|
| +bool IsAllBookmarksEnabled() {
|
| + base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
|
| + if (command_line->HasSwitch(switches::kEnableAllBookmarksView)) {
|
| + return true;
|
| + } else if (command_line->HasSwitch(switches::kDisableAllBookmarksView)) {
|
| + return false;
|
| + }
|
| +
|
| + // Check if the finch experiment is turned on. Flag is off by default.
|
| + std::string group_name =
|
| + base::FieldTrialList::FindFullName("RemoveAllBookmarks");
|
| +
|
| + return base::StartsWith(group_name, "Enabled",
|
| + base::CompareCase::INSENSITIVE_ASCII);
|
| +}
|
| +
|
| } // namespace experimental_flags
|
|
|