Index: ios/chrome/browser/pref_names.cc |
diff --git a/ios/chrome/browser/pref_names.cc b/ios/chrome/browser/pref_names.cc |
index 4ef5ecef71ac2106a755a877238915fb2e70dc86..535063a4e383134b3fc871e5caaced727f777dbe 100644 |
--- a/ios/chrome/browser/pref_names.cc |
+++ b/ios/chrome/browser/pref_names.cc |
@@ -23,6 +23,12 @@ namespace prefs { |
// *************** CHROME BROWSER STATE PREFS *************** |
// 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. |
const char kIosBookmarkFolderDefault[] = "ios.bookmark.default_folder"; |
@@ -30,6 +36,22 @@ const char kIosBookmarkFolderDefault[] = "ios.bookmark.default_folder"; |
// the bookmark promo dialog. |
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. |
const char kPaymentsPreferredUserId[] = "ios.payments.preferred_user_id"; |
@@ -37,4 +59,52 @@ const char kPaymentsPreferredUserId[] = "ios.payments.preferred_user_id"; |
extern const char kShowMemoryDebuggingTools[] = |
"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"; |
+ |
+// Deprecated. The search query to perform when the doodle is tapped. |
+// Since M36, the kDoodleHref pref is used instead. |
+extern const char kDoodleQuery[] = "ios.doodle.query"; |
noyau (Ping after 24h)
2015/05/18 13:21:05
Remove this one, if really deprecated.M-36 is long
sdefresne
2015/05/18 13:22:24
Done.
|
+ |
} // namespace prefs |