Commit 81e3668f authored by sdefresne's avatar sdefresne Committed by Commit bot

[iOS] Upstream preference names used by iOS

BUG=429756

Review URL: https://codereview.chromium.org/1133203003

Cr-Commit-Position: refs/heads/master@{#330354}
parent af5c7c8d
...@@ -23,6 +23,12 @@ namespace prefs { ...@@ -23,6 +23,12 @@ namespace prefs {
// *************** CHROME BROWSER STATE PREFS *************** // *************** CHROME BROWSER STATE PREFS ***************
// These are attached to the user Chrome browser state. // These are attached to the user Chrome browser state.
// String indicating the Contextual Search enabled state.
// "false" - opt-out (disabled)
// "" (empty string) - undecided
// "true" - opt-in (enabled)
const char kContextualSearchEnabled[] = "search.contextual_search_enabled";
// Preference that keep information about where to create a new bookmark. // Preference that keep information about where to create a new bookmark.
const char kIosBookmarkFolderDefault[] = "ios.bookmark.default_folder"; const char kIosBookmarkFolderDefault[] = "ios.bookmark.default_folder";
...@@ -30,6 +36,22 @@ const char kIosBookmarkFolderDefault[] = "ios.bookmark.default_folder"; ...@@ -30,6 +36,22 @@ const char kIosBookmarkFolderDefault[] = "ios.bookmark.default_folder";
// the bookmark promo dialog. // the bookmark promo dialog.
const char kIosBookmarkPromoAlreadySeen[] = "ios.bookmark.promo_already_seen"; const char kIosBookmarkPromoAlreadySeen[] = "ios.bookmark.promo_already_seen";
// Whether Chrome should attempt to hand off the current URL to other Apple
// devices that share an iCloud account.
const char kIosHandoffToOtherDevices[] = "ios.handoff_to_other_devices";
// Preference that hold a boolean indicating whether metrics reporting should
// be limited to wifi (when enabled).
const char kMetricsReportingWifiOnly[] =
"ios.user_experience_metrics.wifi_only";
// Preference that hold a boolean indicating whether network prediction should
// be limited to wifi (when enabled).
const char kNetworkPredictionWifiOnly[] = "ios.dns_prefetching.wifi_only";
// Which bookmarks folder should be visible on the new tab page v4.
const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
// The preferred SSO user for wallet payments. // The preferred SSO user for wallet payments.
const char kPaymentsPreferredUserId[] = "ios.payments.preferred_user_id"; const char kPaymentsPreferredUserId[] = "ios.payments.preferred_user_id";
...@@ -37,4 +59,48 @@ const char kPaymentsPreferredUserId[] = "ios.payments.preferred_user_id"; ...@@ -37,4 +59,48 @@ const char kPaymentsPreferredUserId[] = "ios.payments.preferred_user_id";
extern const char kShowMemoryDebuggingTools[] = extern const char kShowMemoryDebuggingTools[] =
"ios.memory.show_debugging_tools"; "ios.memory.show_debugging_tools";
// User preferred speech input language for voice search.
const char kVoiceSearchLocale[] = "ios.speechinput.voicesearch_locale";
// Boolean which indicates if TTS after voice search is enabled.
extern const char kVoiceSearchTTS[] = "ios.speechinput.voicesearch_tts";
// List which contains the last known list of accounts.
extern const char kSigninLastAccounts[] = "ios.signin.last_accounts";
// String which contains the user id of the user signed in with shared
// authentication.
extern const char kSigninSharedAuthenticationUserId[] =
"ios.signin.shared_authentication_user_id";
// Boolean which indicates if user should be prompted to sign in again
// when a new tab is created.
extern const char kSigninShouldPromptForSigninAgain[] =
"ios.signin.should_prompt_for_signin_again";
// Integer which indicates whether the user has authorized using geolocation
// for Omnibox queries or the progress towards soliciting the user's
// authorization.
extern const char kOmniboxGeolocationAuthorizationState[] =
"ios.omnibox.geolocation_authorization_state";
// String which contains the application version when we last showed the
// authorization alert.
extern const char kOmniboxGeolocationLastAuthorizationAlertVersion[] =
"ios.omnibox.geolocation_last_authorization_alert_version";
// Number of seconds from 1970 when the doodle expires.
extern const char kDoodleExpirationTimeInSeconds[] =
"ios.doodle.expiration_time.seconds";
// The URL to navigate to when the user taps the doodle.
extern const char kDoodleHref[] = "ios.doodle.href";
// Number of seconds from 1970 since the last time a doodle was requested.
extern const char kDoodleLastRequestTimeInSeconds[] =
"ios.doodle.last_request_time.seconds";
// The alternative text for the doodle.
extern const char kDoodleAltText[] = "ios.doodle.alttext";
} // namespace prefs } // namespace prefs
...@@ -17,11 +17,31 @@ extern const char kAcceptLanguages[]; ...@@ -17,11 +17,31 @@ extern const char kAcceptLanguages[];
namespace prefs { namespace prefs {
extern const char kContextualSearchEnabled[];
extern const char kIosBookmarkFolderDefault[]; extern const char kIosBookmarkFolderDefault[];
extern const char kIosBookmarkPromoAlreadySeen[]; extern const char kIosBookmarkPromoAlreadySeen[];
extern const char kIosHandoffToOtherDevices[];
extern const char kMetricsReportingWifiOnly[];
extern const char kNetworkPredictionWifiOnly[];
extern const char kNtpShownBookmarksFolder[];
extern const char kPaymentsPreferredUserId[]; extern const char kPaymentsPreferredUserId[];
extern const char kShowMemoryDebuggingTools[]; extern const char kShowMemoryDebuggingTools[];
extern const char kVoiceSearchLocale[];
extern const char kVoiceSearchTTS[];
extern const char kSigninLastAccounts[];
extern const char kSigninSharedAuthenticationUserId[];
extern const char kSigninShouldPromptForSigninAgain[];
extern const char kOmniboxGeolocationAuthorizationState[];
extern const char kOmniboxGeolocationLastAuthorizationAlertVersion[];
extern const char kDoodleAltText[];
extern const char kDoodleExpirationTimeInSeconds[];
extern const char kDoodleHref[];
extern const char kDoodleLastRequestTimeInSeconds[];
} // namespace prefs } // namespace prefs
#endif // IOS_CHROME_BROWSER_PREF_NAMES_H_ #endif // IOS_CHROME_BROWSER_PREF_NAMES_H_
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