| // Copyright 2022 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #import "ios/chrome/browser/text_selection/model/text_selection_util.h" |
| |
| const char kTextClassifierAddressParameterName[] = "TCAddressOneTap"; |
| const char kTextClassifierPhoneNumberParameterName[] = "TCPhoneNumberOneTap"; |
| const char kTextClassifierEmailParameterName[] = "TCEmailOneTap"; |
| |
| BASE_FEATURE(EnableExpKitTextClassifier, base::FEATURE_ENABLED_BY_DEFAULT); |
| |
| BASE_FEATURE(EnableExpKitTextClassifierDate, base::FEATURE_DISABLED_BY_DEFAULT); |
| |
| BASE_FEATURE(EnableExpKitTextClassifierAddress, |
| base::FEATURE_ENABLED_BY_DEFAULT); |
| |
| BASE_FEATURE(EnableExpKitTextClassifierPhoneNumber, |
| base::FEATURE_DISABLED_BY_DEFAULT); |
| |
| BASE_FEATURE(EnableExpKitTextClassifierEmail, |
| base::FEATURE_DISABLED_BY_DEFAULT); |
| |
| bool IsExpKitTextClassifierEntityEnabled() { |
| return base::FeatureList::IsEnabled(kEnableExpKitTextClassifierDate) || |
| base::FeatureList::IsEnabled(kEnableExpKitTextClassifierAddress) || |
| base::FeatureList::IsEnabled(kEnableExpKitTextClassifierPhoneNumber) || |
| base::FeatureList::IsEnabled(kEnableExpKitTextClassifierEmail); |
| } |
| |
| const char kForceAllowDomainForEntitySelection[] = |
| "force-allow-domain-for-entity-selection"; |