Commit 10be899b authored by Tim Volodine's avatar Tim Volodine Committed by Commit Bot

[WebLayer] Add since annotation to SettingType constants.

Annotate SettingType constans with their availability regarding
WebLayer version.

In particular BASIC_SAFE_BROWSING_ENABLED is available since
M84, other settings are available since M85.

BUG=1102072

Change-Id: If37fd1d9d78c50eb7eef0f41a28eef8e03f3ce3d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2281341Reviewed-by: default avatarTim Sergeant <tsergeant@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Tim Volodine <timvolodine@chromium.org>
Cr-Commit-Position: refs/heads/master@{#785750}
parent d8496278
...@@ -20,11 +20,15 @@ public @interface SettingType { ...@@ -20,11 +20,15 @@ public @interface SettingType {
/** /**
* Allows the embedder to set whether it wants to disable/enable the Safe Browsing functionality * Allows the embedder to set whether it wants to disable/enable the Safe Browsing functionality
* (which checks that the loaded URLs are safe). Safe Browsing is enabled by default. * (which checks that the loaded URLs are safe). Safe Browsing is enabled by default.
*
* @since 84
*/ */
int BASIC_SAFE_BROWSING_ENABLED = int BASIC_SAFE_BROWSING_ENABLED =
org.chromium.weblayer_private.interfaces.SettingType.BASIC_SAFE_BROWSING_ENABLED; org.chromium.weblayer_private.interfaces.SettingType.BASIC_SAFE_BROWSING_ENABLED;
/** /**
* Allows the embedder to enable URL-Keyed Metrics. Disabled by default. * Allows the embedder to enable URL-Keyed Metrics. Disabled by default.
*
* @since 85
*/ */
int UKM_ENABLED = org.chromium.weblayer_private.interfaces.SettingType.UKM_ENABLED; int UKM_ENABLED = org.chromium.weblayer_private.interfaces.SettingType.UKM_ENABLED;
...@@ -37,6 +41,8 @@ public @interface SettingType { ...@@ -37,6 +41,8 @@ public @interface SettingType {
* This setting is disabled by default, but can also be enabled by the user by checking a * This setting is disabled by default, but can also be enabled by the user by checking a
* checkbox in the Safe Browsing interstitial which is displayed when the user encounters a * checkbox in the Safe Browsing interstitial which is displayed when the user encounters a
* dangerous web page. The setting persists on disk. * dangerous web page. The setting persists on disk.
*
* @since 85
*/ */
int EXTENDED_REPORTING_SAFE_BROWSING_ENABLED = int EXTENDED_REPORTING_SAFE_BROWSING_ENABLED =
org.chromium.weblayer_private.interfaces.SettingType org.chromium.weblayer_private.interfaces.SettingType
...@@ -45,6 +51,8 @@ public @interface SettingType { ...@@ -45,6 +51,8 @@ public @interface SettingType {
/** /**
* Allows the embedder to set whether it wants to enable/disable the Safe Browsing Real-time URL * Allows the embedder to set whether it wants to enable/disable the Safe Browsing Real-time URL
* checks. This functionality is disabled by default. * checks. This functionality is disabled by default.
*
* @since 85
*/ */
int REAL_TIME_SAFE_BROWSING_ENABLED = int REAL_TIME_SAFE_BROWSING_ENABLED =
org.chromium.weblayer_private.interfaces.SettingType.REAL_TIME_SAFE_BROWSING_ENABLED; org.chromium.weblayer_private.interfaces.SettingType.REAL_TIME_SAFE_BROWSING_ENABLED;
......
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