Commit c24060a9 authored by Shimi Zhang's avatar Shimi Zhang Committed by Commit Bot

Android: add EnhancedSelectionInsertionHandle to content feature list

For easier control on the feature. Enabled by default.

Bug: 798017
Change-Id: Ia87870c822c9086e92083a0f9deb23a7bfe2a7c0
Reviewed-on: https://chromium-review.googlesource.com/865560Reviewed-by: default avatarBo <boliu@chromium.org>
Commit-Queue: Shimi Zhang <ctzsm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#529133}
parent 9d181c7f
......@@ -22,7 +22,7 @@ namespace {
// this array may either refer to features defined in the header of this file or
// in other locations in the code base (e.g. content_features.h).
const base::Feature* kFeaturesExposedToJava[] = {
&kRequestUnbufferedDispatch,
&kEnhancedSelectionInsertionHandle, &kRequestUnbufferedDispatch,
};
const base::Feature* FindFeatureExposedToJava(const std::string& feature_name) {
......@@ -38,6 +38,8 @@ const base::Feature* FindFeatureExposedToJava(const std::string& feature_name) {
} // namespace
// Alphabetical:
const base::Feature kEnhancedSelectionInsertionHandle{
"EnhancedSelectionInsertionHandle", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kRequestUnbufferedDispatch{
"RequestUnbufferedDispatch", base::FEATURE_ENABLED_BY_DEFAULT};
......
......@@ -11,6 +11,7 @@ namespace content {
namespace android {
// Alphabetical:
extern const base::Feature kEnhancedSelectionInsertionHandle;
extern const base::Feature kRequestUnbufferedDispatch;
} // namespace android
......
......@@ -30,6 +30,8 @@ public abstract class ContentFeatureList {
}
// Alphabetical:
public static final String ENHANCED_SELECTION_INSERTION_HANDLE =
"EnhancedSelectionInsertionHandle";
public static final String REQUEST_UNBUFFERED_DISPATCH = "RequestUnbufferedDispatch";
private static native boolean nativeIsEnabled(String featureName);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment