commit | ca2d5b23f149f3ad109fd8b4272931261b727dd1 | [log] [tgz] |
---|---|---|
author | Justin Donnelly <[email protected]> | Thu Sep 03 19:37:50 2020 |
committer | Commit Bot <[email protected]> | Thu Sep 03 19:37:50 2020 |
tree | 43dea2e9eaab4d5f44406fb2f39ca7dcabe85926 | |
parent | 9346b8d4f46c7abb7d5b09ca3194b72b471e4bbb [diff] [blame] |
[omnibox] Disable the instant extended limit on iOS. This is in preparation for launch. Metrics report: https://docs.google.com/document/d/1QmvnzeFeFOHx4Bk0MwQCJ261sYSqgrrFFUQUQB4ecUI/edit Bug: 964049 Change-Id: I5c97ca2dd4c5f00a9340c64261e33fd8213d6b6b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2391644 Reviewed-by: Stepan Khapugin <[email protected]> Reviewed-by: Mark Pearson <[email protected]> Commit-Queue: Justin Donnelly <[email protected]> Cr-Commit-Position: refs/heads/master@{#804363}
diff --git a/components/omnibox/common/omnibox_features.cc b/components/omnibox/common/omnibox_features.cc index ebebedd..22dbd2e 100644 --- a/components/omnibox/common/omnibox_features.cc +++ b/components/omnibox/common/omnibox_features.cc
@@ -43,6 +43,13 @@ base::FEATURE_ENABLED_BY_DEFAULT; #endif +const auto enabled_by_default_android_ios = +#if defined(OS_ANDROID) || defined(OS_IOS) + base::FEATURE_ENABLED_BY_DEFAULT; +#else + base::FEATURE_DISABLED_BY_DEFAULT; +#endif + // Allows Omnibox to dynamically adjust number of offered suggestions to fill in // the space between Omnibox an the soft keyboard. The number of suggestions // shown will be no less than minimum for the platform (eg. 5 for Android). @@ -127,7 +134,7 @@ // Returns whether IsInstantExtendedAPIEnabled should be ignored when deciding // the number of Google-provided search suggestions. const base::Feature kOmniboxDisableInstantExtendedLimit{ - "OmniboxDisableInstantExtendedLimit", enabled_by_default_android_only}; + "OmniboxDisableInstantExtendedLimit", enabled_by_default_android_ios}; // Show the search engine logo in the omnibox on Android (desktop already does // this).