Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / common / pref_names.cc
index 94385dd..0263006 100644 (file)
@@ -101,6 +101,12 @@ const char kRestoreStartupURLsMigrationTime[] =
 // data in the profile folder on disk but only in memory.
 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode";
 
+// Set to true when enhanced bookmarks experiment is enabled via Chrome sync.
+const char kEnhancedBookmarksExperimentEnabled[] = "enhanced_bookmarks_enabled";
+
+// Enhanced bookmarks extension id passed via Chrome sync.
+const char kEnhancedBookmarksExtensionId[] = "enhanced_bookmarks_extension_id";
+
 // The application locale.
 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state
 // and user's profile.  Global property determines locale of login screen,
@@ -309,13 +315,6 @@ const char kPasswordManagerEnabled[] = "profile.password_manager_enabled";
 const char kPasswordManagerAllowShowPasswords[] =
     "profile.password_manager_allow_show_passwords";
 
-// A list of numbers. Each number corresponds to one of the domains monitored
-// for save-password-prompt breakages. That number is a random index into
-// the array of groups containing the monitored domain. That group should be
-// used for reporting that domain.
-const char kPasswordManagerGroupsForDomains[] =
-    "profile.password_manager_groups_for_domains";
-
 // Booleans identifying whether normal and reverse auto-logins are enabled.
 const char kAutologinEnabled[] = "autologin.enabled";
 const char kReverseAutologinEnabled[] = "reverse_autologin.enabled";
@@ -328,12 +327,9 @@ const char kReverseAutologinRejectedEmailList[] =
 // Boolean that is true when SafeBrowsing is enabled.
 const char kSafeBrowsingEnabled[] = "safebrowsing.enabled";
 
-// Enum that tell us whether malicious download reporting is:
-// 0 - Not enabled because the user has not been prompted
-// 1 - Disabled because the user does not want to participate
-// 2 - Enabled
-const char kSafeBrowsingDownloadReportingEnabled[] =
-    "safebrowsing.download_reporting_enabled";
+// Boolean that tell us whether malicious download feedback is enabled.
+const char kSafeBrowsingDownloadFeedbackEnabled[] =
+    "safebrowsing.download_feedback_enabled";
 
 // Boolean that is true when SafeBrowsing Malware Report is enabled.
 const char kSafeBrowsingReportingEnabled[] =
@@ -353,6 +349,14 @@ const char kIncognitoModeAvailability[] = "incognito.mode_availability";
 // Boolean that is true when Suggest support is enabled.
 const char kSearchSuggestEnabled[] = "search.suggest_enabled";
 
+#if defined(OS_ANDROID)
+// Integer indicating the Contextual Search enabled state.
+// -1 - opt-out (disabled)
+//  0 - undecided
+//  1 - opt-in (enabled)
+const char kContextualSearchEnabled[] = "search.contextual_search_enabled";
+#endif
+
 // Boolean that indicates whether the browser should put up a confirmation
 // window when the user is attempting to quit. Mac only.
 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit";
@@ -529,8 +533,8 @@ const char kMultipleProfilePrefMigration[] =
     "local_state.multiple_profile_prefs_version";
 
 // A boolean pref set to true if prediction of network actions is allowed.
-// Actions include DNS prefetching, TCP and SSL preconnection, and prerendering
-// of web pages.
+// Actions include DNS prefetching, TCP and SSL preconnection, prerendering
+// of web pages, and resource prefetching.
 // NOTE: The "dns_prefetching.enabled" value is used so that historical user
 // preferences are not lost.
 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
@@ -684,6 +688,7 @@ const char kLanguageXkbAutoRepeatInterval[] =
 
 // A boolean pref which determines whether the large cursor feature is enabled.
 const char kLargeCursorEnabled[] = "settings.a11y.large_cursor_enabled";
+
 // A boolean pref which determines whether the sticky keys feature is enabled.
 const char kStickyKeysEnabled[] = "settings.a11y.sticky_keys_enabled";
 // A boolean pref which determines whether spoken feedback is enabled.
@@ -698,8 +703,9 @@ const char kScreenMagnifierEnabled[] = "settings.a11y.screen_magnifier";
 const char kScreenMagnifierType[] = "settings.a11y.screen_magnifier_type2";
 // A double pref which determines a zooming scale of the screen magnifier.
 const char kScreenMagnifierScale[] = "settings.a11y.screen_magnifier_scale";
-// A boolean pref which determines whether virtual keyboard is enabled.
-// TODO(hashimoto): Remove this pref.
+// A boolean pref which determines whether the virtual keyboard is enabled for
+// accessibility.  This feature is separate from displaying an onscreen keyboard
+// due to lack of a physical keyboard.
 const char kVirtualKeyboardEnabled[] = "settings.a11y.virtual_keyboard";
 // A boolean pref which determines whether autoclick is enabled.
 const char kAutoclickEnabled[] = "settings.a11y.autoclick";
@@ -864,6 +870,11 @@ const char kMultiProfileNeverShowIntro[] =
     "settings.multi_profile_never_show_intro";
 
 // A boolean pref recording whether user has dismissed the multiprofile
+// teleport warning dialog show.
+const char kMultiProfileWarningShowDismissed[] =
+    "settings.multi_profile_warning_show_dismissed";
+
+// A boolean pref recording whether user has dismissed the multiprofile
 // notification.
 const char kMultiProfileNotificationDismissed[] =
     "settings.multi_profile_notification_dismissed";
@@ -873,14 +884,29 @@ const char kMultiProfileNotificationDismissed[] =
 // for more details of the valid values.
 const char kMultiProfileUserBehavior[] = "settings.multiprofile_user_behavior";
 
-// List of the set of language codes for which high quality local speech
-// synthesis has been enabled.
-const char kHighQualitySpeechSynthesisLanguages[] =
-    "settings.speech_synthesis.high_quality_languages";
-
 // A boolean preference indicating whether user has seen first-run tutorial
 // already.
 const char kFirstRunTutorialShown[] = "settings.first_run_tutorial_shown";
+
+// Indicates the amount of time for which a user authenticated via SAML can use
+// offline authentication against a cached password before being forced to go
+// through online authentication against GAIA again. The time is expressed in
+// seconds. A value of -1 indicates no limit, allowing the user to use offline
+// authentication indefinitely. The limit is in effect only if GAIA redirected
+// the user to a SAML IdP during the last online authentication.
+const char kSAMLOfflineSigninTimeLimit[] = "saml.offline_signin_time_limit";
+
+// A preference to keep track of the last time the user authenticated against
+// GAIA using SAML. The preference is updated whenever the user authenticates
+// against GAIA: If GAIA redirects to a SAML IdP, the preference is set to the
+// current time. If GAIA performs the authentication itself, the preference is
+// cleared. The time is expressed as the serialization obtained from
+// base::Time::ToInternalValue().
+const char kSAMLLastGAIASignInTime[] = "saml.last_gaia_sign_in_time";
+
+// The total number of seconds that the machine has spent sitting on the
+// OOBE screen.
+const char kTimeOnOobe[] = "settings.time_on_oobe";
 #endif  // defined(OS_CHROMEOS)
 
 // The disabled messages in IPC logging.
@@ -1115,9 +1141,6 @@ const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults";
 // Modifying bookmarks is completely disabled when this is set to false.
 const char kEditBookmarksEnabled[] = "bookmarks.editing_enabled";
 
-// Boolean that is true when the translate feature is enabled.
-const char kEnableTranslate[] = "translate.enabled";
-
 #if !defined(OS_ANDROID)
 const char kPinnedTabs[] = "pinned_tabs";
 #endif
@@ -1269,6 +1292,10 @@ extern const char kWelcomeNotificationDismissed[] =
 extern const char kWelcomeNotificationPreviouslyPoppedUp[] =
     "message_center.welcome_notification_previously_popped_up";
 
+// Integer pref containing the expiration timestamp of the welcome notification.
+extern const char kWelcomeNotificationExpirationTimestamp[] =
+    "message_center.welcome_notification_expiration_timestamp";
+
 // Boolean pref that determines whether the user can enter fullscreen mode.
 // Disabling fullscreen mode also makes kiosk mode unavailable on desktop
 // platforms.
@@ -1284,9 +1311,11 @@ const char kLocalDiscoveryNotificationsEnabled[] =
 // actually a dictionary that maps profile keys to before-mentioned strings.
 const char kProfileResetPromptMemento[] = "profile.reset_prompt_memento";
 
-// Stores the check-in info retrieved from the GCM server.
-const char kGCMUserAccountID[] = "gcm.user.account_id";
-const char kGCMUserToken[] = "gcm.user.token";
+// The GCM channel's enabled state.
+const char kGCMChannelEnabled[] = "gcm.channel_enabled";
+
+// Registered GCM application ids.
+const char kGCMRegisteredAppIDs[] = "gcm.register_app_ids";
 
 // *************** LOCAL STATE ***************
 // These are attached to the machine/installation
@@ -1490,6 +1519,29 @@ const char kStabilityKernelCrashCount[] =
 const char kStabilitySystemUncleanShutdownCount[] =
     "user_experience_metrics.stability.system_unclean_shutdowns";
 
+#if defined(OS_ANDROID)
+// Activity type that is currently in the foreground for the UMA session.
+// Uses the ActivityTypeIds::Type enum.
+const char kStabilityForegroundActivityType[] =
+    "user_experience_metrics.stability.current_foreground_activity_type";
+
+// Tracks which Activities were launched during the last session.
+// See |metrics_service_android.cc| for its usage.
+const char kStabilityLaunchedActivityFlags[] =
+    "user_experience_metrics.stability.launched_activity_flags";
+
+// List pref: Counts how many times each Activity was launched.
+// Indexed into by ActivityTypeIds::Type.
+const char kStabilityLaunchedActivityCounts[] =
+    "user_experience_metrics.stability.launched_activity_counts";
+
+// List pref: Counts how many times each Activity type was in the foreground
+// when a UMA session failed to be shut down properly.
+// Indexed into by ActivityTypeIds::Type.
+const char kStabilityCrashedActivityCounts[] =
+    "user_experience_metrics.stability.crashed_activity_counts";
+#endif
+
 // Number of times the browser has been able to register crash reporting.
 const char kStabilityBreakpadRegistrationSuccess[] =
     "user_experience_metrics.stability.breakpad_registration_ok";
@@ -1807,6 +1859,8 @@ const char kSyncPreferences[] = "sync.preferences";
 const char kSyncPriorityPreferences[] = "sync.priority_preferences";
 const char kSyncSearchEngines[] = "sync.search_engines";
 const char kSyncSessions[] = "sync.sessions";
+const char kSyncSyncedNotificationAppInfo[] =
+    "sync.synced_notification_app_info";
 const char kSyncSyncedNotifications[] = "sync.synced_notifications";
 const char kSyncTabs[] = "sync.tabs";
 const char kSyncThemes[] = "sync.themes";
@@ -2085,20 +2139,18 @@ const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls";
 // trigger.
 const char kHotwordSearchEnabled[] = "hotword.search_enabled";
 
-// A boolean pref that controls the enabled-state of hotword search voice
-// trigger when using incognito mode.
-const char kHotwordSearchIncognitoEnabled[] =
-    "hotword.incognito_search_enabled";
-
 // An integer pref that keeps track of how many times the opt in popup for
 // hotword void search has been shown to the user. After this pref has reached
 // the maximum number of times as defined by the HotwordService, the popup is no
 // longer shown.
 const char kHotwordOptInPopupTimesShown[] = "hotword.opt_in_popup_times_shown";
 
-// A boolean pref that controls whether hotword search voice trigger stops
-// listening after 5 minutes.
-const char kHotwordSearchTimeoutEnabled[] = "hotword.search_timeout_enabled";
+#if defined(OS_CHROMEOS)
+// A boolean pref that controls the enabled-state of hotword search in the
+// app-list. This pref cooperates with kHotwordSearchEnabled. If the user
+// explicitly turns off kHotwordSearchEnabled, this pref should go off too.
+const char kHotwordAppListEnabled[] = "hotword.app_list_enabled";
+#endif
 
 #if defined(OS_ANDROID)
 // Boolean that controls the global enabled-state of protected media identifier.
@@ -2400,6 +2452,9 @@ const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id";
 const char kMediaGalleriesRememberedGalleries[] =
     "media_galleries.remembered_galleries";
 
+// The last time a media scan completed.
+const char kMediaGalleriesLastScanTime[] = "media_galleries.last_scan_time";
+
 #if defined(USE_ASH)
 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
 // local variant is not synced and is used if set. If the local variant is not
@@ -2465,8 +2520,6 @@ const char kMinRailBreakVelocity[] =
     "gesture.min_rail_break_velocity";
 const char kMinScrollDeltaSquared[] =
     "gesture.min_scroll_delta_squared";
-const char kMinScrollSuccessiveVelocityEvents[] =
-    "gesture.min_scroll_successive_velocity_events";
 const char kMinSwipeSpeed[] =
     "gesture.min_swipe_speed";
 const char kMinTouchDownDurationInSecondsForClick[] =
@@ -2517,11 +2570,6 @@ const char kOverscrollHorizontalResistThreshold[] =
     "overscroll.horizontal_resist_threshold";
 const char kOverscrollVerticalResistThreshold[] =
     "overscroll.vertical_resist_threshold";
-// TODO(mohsen): Remove following pref in M33. By then, it will have been
-// cleared from preferences file for majority of users and it will be ready to
-// be removed: crbug.com/269292.
-// A temporary pref to do a one-time wipe of gesture preferences.
-const char kGestureConfigIsTrustworthy[] = "gesture.config_is_trustworthy";
 #endif
 
 // Counts how many more times the 'profile on a network share' warning should be
@@ -2542,7 +2590,7 @@ const char kRLZDisabled[] = "rlz.disabled";
 #if defined(ENABLE_APP_LIST)
 // The directory in user data dir that contains the profile to be used with the
 // app launcher.
-extern const char kAppListProfile[] = "app_list.profile";
+const char kAppListProfile[] = "app_list.profile";
 
 // Whether to show the app list on a browser relaunch. Used when switching out
 // of metro mode after a user gesture requests showing the app list.
@@ -2550,18 +2598,25 @@ const char kRestartWithAppList[] = "app_list.show_on_relaunch";
 
 // The number of times the app launcher was launched since last ping and
 // the time of the last ping.
-extern const char kAppListLaunchCount[] = "app_list.launch_count";
-extern const char kLastAppListLaunchPing[] = "app_list.last_launch_ping";
+const char kAppListLaunchCount[] = "app_list.launch_count";
+const char kLastAppListLaunchPing[] = "app_list.last_launch_ping";
 
 // The number of times the an app was launched from the app launcher since last
 // ping and the time of the last ping.
-extern const char kAppListAppLaunchCount[] = "app_list.app_launch_count";
-extern const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping";
+const char kAppListAppLaunchCount[] = "app_list.app_launch_count";
+const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping";
 
 // A boolean that tracks whether the user has ever enabled the app launcher.
 const char kAppLauncherHasBeenEnabled[] =
     "apps.app_launcher.has_been_enabled";
 
+// An enum indicating how the app launcher was enabled. E.g., via webstore, app
+// install, command line, etc. For UMA.
+const char kAppListEnableMethod[] = "app_list.how_enabled";
+
+// The time that the app launcher was enabled. Cleared when UMA is recorded.
+const char kAppListEnableTime[] = "app_list.when_enabled";
+
 // TODO(calamity): remove this pref since app launcher will always be
 // installed.
 // Local state caching knowledge of whether the app launcher is installed.
@@ -2612,6 +2667,10 @@ const char kWatchdogExtensionActiveOld[] =
 // of Chrome.
 const char kProfilePreferenceHashes[] = "profile.preference_hashes";
 
+// A timestamp (stored in base::Time::ToInternalValue format) of the last time
+// a preference was reset.
+const char kProfilePreferenceResetTime[] = "profile.preference_reset_time";
+
 // Stores a pair of local time and corresponding network time to bootstrap
 // network time tracker when browser starts.
 const char kNetworkTimeMapping[] = "profile.network_time_mapping";