[ios] Creates chrome memex Tab Switcher flag and functionality.
As part of go/memex development, this CL introduces a flag that when enabled
makes the TabSwitcher button to navigate to the chrome memex web prototype when tapped,
instead of triggering the native Tab Switcher. The native Tab Switcher can be accessed by long
pressing the button.
The NTP Tab Switcher button doesn't support this and will always display the native TabSwitcher.
Bug:
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I9d91fd2b5dd91d9e19f548db4c0c9d4f6d7ee308
Reviewed-on: https://chromium-review.googlesource.com/853222
Commit-Queue: Sergio Collazos <[email protected]>
Reviewed-by: Gauthier Ambard <[email protected]>
Reviewed-by: Mark Cogan <[email protected]>
Cr-Commit-Position: refs/heads/master@{#528148}
diff --git a/ios/chrome/browser/about_flags.mm b/ios/chrome/browser/about_flags.mm
index 0ddaa758..bb24210 100644
--- a/ios/chrome/browser/about_flags.mm
+++ b/ios/chrome/browser/about_flags.mm
@@ -208,6 +208,9 @@
{"ios-share-canonical-url", flag_descriptions::kShareCanonicalURLName,
flag_descriptions::kShareCanonicalURLDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(activity_services::kShareCanonicalURL)},
+ {"memex-tab-switcher", flag_descriptions::kMemexTabSwitcherName,
+ flag_descriptions::kMemexTabSwitcherDescription, flags_ui::kOsIos,
+ FEATURE_VALUE_TYPE(kMemexTabSwitcher)},
{"new-fullscreen-controller", flag_descriptions::kNewFullscreenName,
flag_descriptions::kNewFullscreenDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(fullscreen::features::kNewFullscreen)},