blob: 1d5ba5eb92cca64256b69422a2f6555aa58c141f [file] [log] [blame]
// 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(kEnableExpKitTextClassifier, base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kEnableExpKitTextClassifierDate,
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kEnableExpKitTextClassifierAddress,
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kEnableExpKitTextClassifierPhoneNumber,
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kEnableExpKitTextClassifierEmail,
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";