1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ios/chrome/browser/pref_names.h"
10 // Preferences in ios::prefs:: must have the same value as the corresponding
11 // preference on desktop.
12 // These preferences must not be registered by //ios code.
13 // See chrome/common/pref_names.cc for a detailed description of each
16 const char kAcceptLanguages
[] = "intl.accept_languages";
17 const char kHomePage
[] = "homepage";
18 const char kSavingBrowserHistoryDisabled
[] = "history.saving_disabled";
25 // *************** CHROME BROWSER STATE PREFS ***************
26 // These are attached to the user Chrome browser state.
28 // String indicating the Contextual Search enabled state.
29 // "false" - opt-out (disabled)
30 // "" (empty string) - undecided
31 // "true" - opt-in (enabled)
32 const char kContextualSearchEnabled
[] = "search.contextual_search_enabled";
34 // Preference that keep information about where to create a new bookmark.
35 const char kIosBookmarkFolderDefault
[] = "ios.bookmark.default_folder";
37 // Preference that hold a boolean indicating if the user has already dismissed
38 // the bookmark promo dialog.
39 const char kIosBookmarkPromoAlreadySeen
[] = "ios.bookmark.promo_already_seen";
41 // Boolean which indicates if the user has already set a "do not backup" bit to
42 // the OTR Profiles's state stash path to ensure that the folder is not
43 // automatically synced to iCloud/iTunes.
44 const char kOTRStashStatePathSystemBackupExcluded
[] =
45 "ios.otr_stash_state_path_system_backup_excluded";
47 // Whether Chrome should attempt to hand off the current URL to other Apple
48 // devices that share an iCloud account.
49 const char kIosHandoffToOtherDevices
[] = "ios.handoff_to_other_devices";
51 // True if the previous session exited cleanly.
52 // This can be different from kStabilityExitedCleanly, because the last run of
53 // the program may not have included a browsing session, and thus the last run
54 // of the program may have happened after the run that included the last
56 const char kLastSessionExitedCleanly
[] =
57 "ios.user_experience_metrics.last_session_exited_cleanly";
59 // Preference that hold a boolean indicating whether metrics reporting should
60 // be limited to wifi (when enabled).
61 const char kMetricsReportingWifiOnly
[] =
62 "ios.user_experience_metrics.wifi_only";
64 // Preference that hold a boolean indicating whether network prediction should
65 // be limited to wifi (when enabled).
66 const char kNetworkPredictionWifiOnly
[] = "ios.dns_prefetching.wifi_only";
68 // Which bookmarks folder should be visible on the new tab page v4.
69 const char kNtpShownBookmarksFolder
[] = "ntp.shown_bookmarks_folder";
71 // True if the memory debugging tools should be visible.
72 extern const char kShowMemoryDebuggingTools
[] =
73 "ios.memory.show_debugging_tools";
75 // User preferred speech input language for voice search.
76 const char kVoiceSearchLocale
[] = "ios.speechinput.voicesearch_locale";
78 // Boolean which indicates if TTS after voice search is enabled.
79 extern const char kVoiceSearchTTS
[] = "ios.speechinput.voicesearch_tts";
81 // List which contains the last known list of accounts.
82 extern const char kSigninLastAccounts
[] = "ios.signin.last_accounts";
84 // String which contains the user id of the user signed in with shared
86 extern const char kSigninSharedAuthenticationUserId
[] =
87 "ios.signin.shared_authentication_user_id";
89 // Boolean which indicates if user should be prompted to sign in again
90 // when a new tab is created.
91 extern const char kSigninShouldPromptForSigninAgain
[] =
92 "ios.signin.should_prompt_for_signin_again";
94 // Integer which indicates whether the user has authorized using geolocation
95 // for Omnibox queries or the progress towards soliciting the user's
97 extern const char kOmniboxGeolocationAuthorizationState
[] =
98 "ios.omnibox.geolocation_authorization_state";
100 // String which contains the application version when we last showed the
101 // authorization alert.
102 extern const char kOmniboxGeolocationLastAuthorizationAlertVersion
[] =
103 "ios.omnibox.geolocation_last_authorization_alert_version";