Commit 3526bc38 authored by Henrique Nakashima's avatar Henrique Nakashima Committed by Commit Bot

Move names of prefs used only by FeatureUtilities into it.

This guarantees no other classes use the same prefs.

These pref names will be replaced eventually by a name generated from
the flag.

Bug: 1012975
Change-Id: If072aece06e1dd54a148e316f94c06e439f7032e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1854531
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Cr-Commit-Position: refs/heads/master@{#705333}
parent 1adb1723
...@@ -104,13 +104,6 @@ public class ChromePreferenceManager { ...@@ -104,13 +104,6 @@ public class ChromePreferenceManager {
public static final String CONTEXTUAL_SEARCH_PREVIOUS_INTERACTION_TIMESTAMP = public static final String CONTEXTUAL_SEARCH_PREVIOUS_INTERACTION_TIMESTAMP =
"contextual_search_previous_interaction_timestamp"; "contextual_search_previous_interaction_timestamp";
/**
* Key to cache whether
* {@link ChromeFeatureList#SWAP_PIXEL_FORMAT_TO_FIX_CONVERT_FROM_TRANSLUCENT} is enabled.
*/
public static final String SWAP_PIXEL_FORMAT_TO_FIX_CONVERT_FROM_TRANSLUCENT =
"swap_pixel_format_to_fix_convert_from_translucent";
/** /**
* Whether the promotion for data reduction has been skipped on first invocation. * Whether the promotion for data reduction has been skipped on first invocation.
* Default value is false. * Default value is false.
...@@ -191,43 +184,6 @@ public class ChromePreferenceManager { ...@@ -191,43 +184,6 @@ public class ChromePreferenceManager {
private static final String INFLATE_TOOLBAR_ON_BACKGROUND_THREAD_KEY = private static final String INFLATE_TOOLBAR_ON_BACKGROUND_THREAD_KEY =
"inflate_toolbar_on_background_thread"; "inflate_toolbar_on_background_thread";
/**
* Whether or not the bottom toolbar is enabled.
* Default value is false.
*/
public static final String BOTTOM_TOOLBAR_ENABLED_KEY = "bottom_toolbar_enabled";
/**
* Whether or not the adaptive toolbar is enabled.
* Default value is true.
*/
public static final String ADAPTIVE_TOOLBAR_ENABLED_KEY = "adaptive_toolbar_enabled";
/**
* Whether or not the labeled bottom toolbar is enabled.
* Default value is false.
*/
public static final String LABELED_BOTTOM_TOOLBAR_ENABLED_KEY =
"labeled_bottom_toolbar_enabled";
/**
* Whether or not night mode is available.
* Default value is false.
*/
public static final String NIGHT_MODE_AVAILABLE_KEY = "night_mode_available";
/**
* Whether or not night mode should set "light" as the default option.
* Default value is false.
*/
public static final String NIGHT_MODE_DEFAULT_TO_LIGHT = "night_mode_default_to_light";
/**
* Whether or not night mode is available for custom tabs.
* Default value is false.
*/
public static final String NIGHT_MODE_CCT_AVAILABLE_KEY = "night_mode_cct_available";
/** /**
* The current theme setting in the user settings. * The current theme setting in the user settings.
* Default value is -1. Use NightModeUtils#getThemeSetting() to retrieve current setting or * Default value is -1. Use NightModeUtils#getThemeSetting() to retrieve current setting or
...@@ -241,13 +197,6 @@ public class ChromePreferenceManager { ...@@ -241,13 +197,6 @@ public class ChromePreferenceManager {
*/ */
public static final String DARKEN_WEBSITES_ENABLED_KEY = "darken_websites_enabled"; public static final String DARKEN_WEBSITES_ENABLED_KEY = "darken_websites_enabled";
/**
* Whether or not the download auto-resumption is enabled in native.
* Default value is true.
*/
public static final String DOWNLOAD_AUTO_RESUMPTION_IN_NATIVE_KEY =
"download_auto_resumption_in_native";
/** /**
* Marks that the content suggestions surface has been shown. * Marks that the content suggestions surface has been shown.
* Default value is false. * Default value is false.
...@@ -279,13 +228,6 @@ public class ChromePreferenceManager { ...@@ -279,13 +228,6 @@ public class ChromePreferenceManager {
@Deprecated @Deprecated
public static final String SOLE_INTEGRATION_ENABLED_KEY = "sole_integration_enabled"; public static final String SOLE_INTEGRATION_ENABLED_KEY = "sole_integration_enabled";
/**
* Whether or not command line on non-rooted devices is enabled.
* Default value is false.
*/
public static final String COMMAND_LINE_ON_NON_ROOTED_ENABLED_KEY =
"command_line_on_non_rooted_enabled";
private static final String VERIFIED_DIGITAL_ASSET_LINKS = private static final String VERIFIED_DIGITAL_ASSET_LINKS =
"verified_digital_asset_links"; "verified_digital_asset_links";
private static final String TRUSTED_WEB_ACTIVITY_DISCLOSURE_ACCEPTED_PACKAGES = private static final String TRUSTED_WEB_ACTIVITY_DISCLOSURE_ACCEPTED_PACKAGES =
...@@ -329,27 +271,6 @@ public class ChromePreferenceManager { ...@@ -329,27 +271,6 @@ public class ChromePreferenceManager {
/** Key for deferred recording of list of uninstalled WebAPK packages. */ /** Key for deferred recording of list of uninstalled WebAPK packages. */
public static final String WEBAPK_UNINSTALLED_PACKAGES = "webapk_uninstalled_packages"; public static final String WEBAPK_UNINSTALLED_PACKAGES = "webapk_uninstalled_packages";
public static final String INTEREST_FEED_CONTENT_SUGGESTIONS_KEY =
"interest_feed_content_suggestions";
/**
* Whether or not the start surface is enabled.
* Default value is false.
*/
public static final String START_SURFACE_ENABLED_KEY = "start_surface_enabled";
/**
* Whether or not the grid tab switcher is enabled.
* Default value is false.
*/
public static final String GRID_TAB_SWITCHER_ENABLED_KEY = "grid_tab_switcher_enabled";
/**
* Whether or not the tab group is enabled.
* Default value is false.
*/
public static final String TAB_GROUPS_ANDROID_ENABLED_KEY = "tab_group_android_enabled";
/** /**
* Whether or not the tab group UI improvement is enabled. * Whether or not the tab group UI improvement is enabled.
* Default value is false. * Default value is false.
...@@ -357,21 +278,6 @@ public class ChromePreferenceManager { ...@@ -357,21 +278,6 @@ public class ChromePreferenceManager {
public static final String TAB_GROUPS_UI_IMPROVEMENTS_ANDROID_ENABLED_KEY = public static final String TAB_GROUPS_UI_IMPROVEMENTS_ANDROID_ENABLED_KEY =
"tab_group_ui_improvements_android_enabled"; "tab_group_ui_improvements_android_enabled";
/**
* Key for whether PrefetchBackgroundTask should load native in service manager only mode.
* Default value is false.
*/
public static final String SERVICE_MANAGER_FOR_BACKGROUND_PREFETCH_KEY =
"service_manager_for_background_prefetch";
/**
* Key for whether DownloadResumptionBackgroundTask should load native in service manager only
* mode.
* Default value is false.
*/
public static final String SERVICE_MANAGER_FOR_DOWNLOAD_RESUMPTION_KEY =
"service_manager_for_download_resumption";
/** /**
* Key for whether it allows to start in service manager only mode. * Key for whether it allows to start in service manager only mode.
* Default value is false. * Default value is false.
...@@ -388,37 +294,12 @@ public class ChromePreferenceManager { ...@@ -388,37 +294,12 @@ public class ChromePreferenceManager {
public static final String CHROME_HOME_INFO_PROMO_SHOWN_KEY = "chrome_home_info_promo_shown"; public static final String CHROME_HOME_INFO_PROMO_SHOWN_KEY = "chrome_home_info_promo_shown";
public static final String CHROME_HOME_SHARED_PREFERENCES_KEY = "chrome_home_enabled_date"; public static final String CHROME_HOME_SHARED_PREFERENCES_KEY = "chrome_home_enabled_date";
/**
* Whether or not bootstrap tasks should be prioritized (i.e. bootstrap task prioritization
* experiment is enabled). Default value is true.
*/
public static final String PRIORITIZE_BOOTSTRAP_TASKS_KEY = "prioritize_bootstrap_tasks";
/**
* Whether warming up network service is enabled.
* Default value is false.
*/
public static final String NETWORK_SERVICE_WARM_UP_ENABLED_KEY =
"network_service_warm_up_enabled";
/** /**
* Contains a trial group that was used to determine whether the reached code profiler should be * Contains a trial group that was used to determine whether the reached code profiler should be
* enabled. * enabled.
*/ */
public static final String REACHED_CODE_PROFILER_GROUP_KEY = "reached_code_profiler_group"; public static final String REACHED_CODE_PROFILER_GROUP_KEY = "reached_code_profiler_group";
/**
* Whether or not we should directly open the dialer when a click to call notification is
* received. Default value is false.
*/
public static final String CLICK_TO_CALL_OPEN_DIALER_DIRECTLY_KEY =
"click_to_call_open_dialer_directly";
/**
* Key to cache whether immersive ui mode is enabled.
*/
public static final String IMMERSIVE_UI_MODE_ENABLED = "immersive_ui_mode_enabled";
/** /**
* Key to cache whether offline indicator v2 (persistent offline indicator) is enabled. * Key to cache whether offline indicator v2 (persistent offline indicator) is 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