Fixes for Android GN build input/outputs
[chromium-blink-merge.git] / ios / chrome / browser / pref_names.cc
blob0ca03b396852c8f3c1c1af25dbde0a3a035085eb
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"
7 namespace ios {
8 namespace prefs {
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
14 // preference.
16 const char kAcceptLanguages[] = "intl.accept_languages";
18 } // namespace prefs
19 } // namespace ios
21 namespace prefs {
23 // *************** CHROME BROWSER STATE PREFS ***************
24 // These are attached to the user Chrome browser state.
26 // String indicating the Contextual Search enabled state.
27 // "false" - opt-out (disabled)
28 // "" (empty string) - undecided
29 // "true" - opt-in (enabled)
30 const char kContextualSearchEnabled[] = "search.contextual_search_enabled";
32 // Preference that keep information about where to create a new bookmark.
33 const char kIosBookmarkFolderDefault[] = "ios.bookmark.default_folder";
35 // Preference that hold a boolean indicating if the user has already dismissed
36 // the bookmark promo dialog.
37 const char kIosBookmarkPromoAlreadySeen[] = "ios.bookmark.promo_already_seen";
39 // Boolean which indicates if the user has already set a "do not backup" bit to
40 // the OTR Profiles's state stash path to ensure that the folder is not
41 // automatically synced to iCloud/iTunes.
42 const char kOTRStashStatePathSystemBackupExcluded[] =
43 "ios.otr_stash_state_path_system_backup_excluded";
45 // Whether Chrome should attempt to hand off the current URL to other Apple
46 // devices that share an iCloud account.
47 const char kIosHandoffToOtherDevices[] = "ios.handoff_to_other_devices";
49 // Preference that hold a boolean indicating whether metrics reporting should
50 // be limited to wifi (when enabled).
51 const char kMetricsReportingWifiOnly[] =
52 "ios.user_experience_metrics.wifi_only";
54 // Preference that hold a boolean indicating whether network prediction should
55 // be limited to wifi (when enabled).
56 const char kNetworkPredictionWifiOnly[] = "ios.dns_prefetching.wifi_only";
58 // Which bookmarks folder should be visible on the new tab page v4.
59 const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
61 // The preferred SSO user for wallet payments.
62 const char kPaymentsPreferredUserId[] = "ios.payments.preferred_user_id";
64 // True if the memory debugging tools should be visible.
65 extern const char kShowMemoryDebuggingTools[] =
66 "ios.memory.show_debugging_tools";
68 // User preferred speech input language for voice search.
69 const char kVoiceSearchLocale[] = "ios.speechinput.voicesearch_locale";
71 // Boolean which indicates if TTS after voice search is enabled.
72 extern const char kVoiceSearchTTS[] = "ios.speechinput.voicesearch_tts";
74 // List which contains the last known list of accounts.
75 extern const char kSigninLastAccounts[] = "ios.signin.last_accounts";
77 // String which contains the user id of the user signed in with shared
78 // authentication.
79 extern const char kSigninSharedAuthenticationUserId[] =
80 "ios.signin.shared_authentication_user_id";
82 // Boolean which indicates if user should be prompted to sign in again
83 // when a new tab is created.
84 extern const char kSigninShouldPromptForSigninAgain[] =
85 "ios.signin.should_prompt_for_signin_again";
87 // Integer which indicates whether the user has authorized using geolocation
88 // for Omnibox queries or the progress towards soliciting the user's
89 // authorization.
90 extern const char kOmniboxGeolocationAuthorizationState[] =
91 "ios.omnibox.geolocation_authorization_state";
93 // String which contains the application version when we last showed the
94 // authorization alert.
95 extern const char kOmniboxGeolocationLastAuthorizationAlertVersion[] =
96 "ios.omnibox.geolocation_last_authorization_alert_version";
98 } // namespace prefs