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 // See chrome/common/pref_names.cc for a detailed description of each
15 const char kAcceptLanguages
[] = "intl.accept_languages";
16 const char kBrowserStateLastUsed
[] = "profile.last_used";
17 const char kBrowserStatesLastActive
[] = "profile.last_active_profiles";
18 const char kBrowserStatesNumCreated
[] = "profile.profiles_created";
19 const char kDefaultCharset
[] = "intl.charset_default";
20 const char kEnableDoNotTrack
[] = "enable_do_not_track";
21 const char kHttpServerProperties
[] = "net.http_server_properties";
22 const char kSavingBrowserHistoryDisabled
[] = "history.saving_disabled";
23 const char kSearchSuggestEnabled
[] = "search.suggest_enabled";
30 // *************** CHROME BROWSER STATE PREFS ***************
31 // These are attached to the user Chrome browser state.
33 // String indicating the Contextual Search enabled state.
34 // "false" - opt-out (disabled)
35 // "" (empty string) - undecided
36 // "true" - opt-in (enabled)
37 const char kContextualSearchEnabled
[] = "search.contextual_search_enabled";
39 // Preference that keep information about where to create a new bookmark.
40 const char kIosBookmarkFolderDefault
[] = "ios.bookmark.default_folder";
42 // Preference that hold a boolean indicating if the user has already dismissed
43 // the bookmark promo dialog.
44 const char kIosBookmarkPromoAlreadySeen
[] = "ios.bookmark.promo_already_seen";
46 // Boolean which indicates if the user has already set a "do not backup" bit to
47 // the OTR Profiles's state stash path to ensure that the folder is not
48 // automatically synced to iCloud/iTunes.
49 const char kOTRStashStatePathSystemBackupExcluded
[] =
50 "ios.otr_stash_state_path_system_backup_excluded";
52 // Whether Chrome should attempt to hand off the current URL to other Apple
53 // devices that share an iCloud account.
54 const char kIosHandoffToOtherDevices
[] = "ios.handoff_to_other_devices";
56 // True if the previous session exited cleanly.
57 // This can be different from kStabilityExitedCleanly, because the last run of
58 // the program may not have included a browsing session, and thus the last run
59 // of the program may have happened after the run that included the last
61 const char kLastSessionExitedCleanly
[] =
62 "ios.user_experience_metrics.last_session_exited_cleanly";
64 // Preference that hold a boolean indicating whether metrics reporting should
65 // be limited to wifi (when enabled).
66 const char kMetricsReportingWifiOnly
[] =
67 "ios.user_experience_metrics.wifi_only";
69 // Preference that hold a boolean indicating whether network prediction should
70 // be limited to wifi (when enabled).
71 const char kNetworkPredictionWifiOnly
[] = "ios.dns_prefetching.wifi_only";
73 // Which bookmarks folder should be visible on the new tab page v4.
74 const char kNtpShownBookmarksFolder
[] = "ntp.shown_bookmarks_folder";
76 // True if the memory debugging tools should be visible.
77 const char kShowMemoryDebuggingTools
[] = "ios.memory.show_debugging_tools";
79 // User preferred speech input language for voice search.
80 const char kVoiceSearchLocale
[] = "ios.speechinput.voicesearch_locale";
82 // Boolean which indicates if TTS after voice search is enabled.
83 const char kVoiceSearchTTS
[] = "ios.speechinput.voicesearch_tts";
85 // List which contains the last known list of accounts.
86 const char kSigninLastAccounts
[] = "ios.signin.last_accounts";
88 // Boolean which indicates if the pref which contains the last known list of
89 // accounts was migrated to use account ids instead of emails.
90 const char kSigninLastAccountsMigrated
[] = "ios.signin.last_accounts_migrated";
92 // String which contains the user id of the user signed in with shared
94 const char kSigninSharedAuthenticationUserId
[] =
95 "ios.signin.shared_authentication_user_id";
97 // Boolean which indicates if user should be prompted to sign in again
98 // when a new tab is created.
99 const char kSigninShouldPromptForSigninAgain
[] =
100 "ios.signin.should_prompt_for_signin_again";
102 // Integer which indicates whether the user has authorized using geolocation
103 // for Omnibox queries or the progress towards soliciting the user's
105 const char kOmniboxGeolocationAuthorizationState
[] =
106 "ios.omnibox.geolocation_authorization_state";
108 // String which contains the application version when we last showed the
109 // authorization alert.
110 const char kOmniboxGeolocationLastAuthorizationAlertVersion
[] =
111 "ios.omnibox.geolocation_last_authorization_alert_version";