Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: ios/chrome/browser/pref_names.cc

Issue 1133203003: [iOS] Upstream preference names used by iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove deprecated prefs Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/chrome/browser/pref_names.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ios/chrome/browser/pref_names.h" 5 #include "ios/chrome/browser/pref_names.h"
6 6
7 namespace ios { 7 namespace ios {
8 namespace prefs { 8 namespace prefs {
9 9
10 // Preferences in ios::prefs:: must have the same value as the corresponding 10 // Preferences in ios::prefs:: must have the same value as the corresponding
11 // preference on desktop. 11 // preference on desktop.
12 // These preferences must not be registered by //ios code. 12 // These preferences must not be registered by //ios code.
13 // See chrome/common/pref_names.cc for a detailed description of each 13 // See chrome/common/pref_names.cc for a detailed description of each
14 // preference. 14 // preference.
15 15
16 const char kAcceptLanguages[] = "intl.accept_languages"; 16 const char kAcceptLanguages[] = "intl.accept_languages";
17 17
18 } // namespace prefs 18 } // namespace prefs
19 } // namespace ios 19 } // namespace ios
20 20
21 namespace prefs { 21 namespace prefs {
22 22
23 // *************** CHROME BROWSER STATE PREFS *************** 23 // *************** CHROME BROWSER STATE PREFS ***************
24 // These are attached to the user Chrome browser state. 24 // These are attached to the user Chrome browser state.
25 25
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";
31
26 // Preference that keep information about where to create a new bookmark. 32 // Preference that keep information about where to create a new bookmark.
27 const char kIosBookmarkFolderDefault[] = "ios.bookmark.default_folder"; 33 const char kIosBookmarkFolderDefault[] = "ios.bookmark.default_folder";
28 34
29 // Preference that hold a boolean indicating if the user has already dismissed 35 // Preference that hold a boolean indicating if the user has already dismissed
30 // the bookmark promo dialog. 36 // the bookmark promo dialog.
31 const char kIosBookmarkPromoAlreadySeen[] = "ios.bookmark.promo_already_seen"; 37 const char kIosBookmarkPromoAlreadySeen[] = "ios.bookmark.promo_already_seen";
32 38
39 // Whether Chrome should attempt to hand off the current URL to other Apple
40 // devices that share an iCloud account.
41 const char kIosHandoffToOtherDevices[] = "ios.handoff_to_other_devices";
42
43 // Preference that hold a boolean indicating whether metrics reporting should
44 // be limited to wifi (when enabled).
45 const char kMetricsReportingWifiOnly[] =
46 "ios.user_experience_metrics.wifi_only";
47
48 // Preference that hold a boolean indicating whether network prediction should
49 // be limited to wifi (when enabled).
50 const char kNetworkPredictionWifiOnly[] = "ios.dns_prefetching.wifi_only";
51
52 // Which bookmarks folder should be visible on the new tab page v4.
53 const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
54
33 // The preferred SSO user for wallet payments. 55 // The preferred SSO user for wallet payments.
34 const char kPaymentsPreferredUserId[] = "ios.payments.preferred_user_id"; 56 const char kPaymentsPreferredUserId[] = "ios.payments.preferred_user_id";
35 57
36 // True if the memory debugging tools should be visible. 58 // True if the memory debugging tools should be visible.
37 extern const char kShowMemoryDebuggingTools[] = 59 extern const char kShowMemoryDebuggingTools[] =
38 "ios.memory.show_debugging_tools"; 60 "ios.memory.show_debugging_tools";
39 61
62 // User preferred speech input language for voice search.
63 const char kVoiceSearchLocale[] = "ios.speechinput.voicesearch_locale";
64
65 // Boolean which indicates if TTS after voice search is enabled.
66 extern const char kVoiceSearchTTS[] = "ios.speechinput.voicesearch_tts";
67
68 // List which contains the last known list of accounts.
69 extern const char kSigninLastAccounts[] = "ios.signin.last_accounts";
70
71 // String which contains the user id of the user signed in with shared
72 // authentication.
73 extern const char kSigninSharedAuthenticationUserId[] =
74 "ios.signin.shared_authentication_user_id";
75
76 // Boolean which indicates if user should be prompted to sign in again
77 // when a new tab is created.
78 extern const char kSigninShouldPromptForSigninAgain[] =
79 "ios.signin.should_prompt_for_signin_again";
80
81 // Integer which indicates whether the user has authorized using geolocation
82 // for Omnibox queries or the progress towards soliciting the user's
83 // authorization.
84 extern const char kOmniboxGeolocationAuthorizationState[] =
85 "ios.omnibox.geolocation_authorization_state";
86
87 // String which contains the application version when we last showed the
88 // authorization alert.
89 extern const char kOmniboxGeolocationLastAuthorizationAlertVersion[] =
90 "ios.omnibox.geolocation_last_authorization_alert_version";
91
92 // Number of seconds from 1970 when the doodle expires.
93 extern const char kDoodleExpirationTimeInSeconds[] =
94 "ios.doodle.expiration_time.seconds";
95
96 // The URL to navigate to when the user taps the doodle.
97 extern const char kDoodleHref[] = "ios.doodle.href";
98
99 // Number of seconds from 1970 since the last time a doodle was requested.
100 extern const char kDoodleLastRequestTimeInSeconds[] =
101 "ios.doodle.last_request_time.seconds";
102
103 // The alternative text for the doodle.
104 extern const char kDoodleAltText[] = "ios.doodle.alttext";
105
40 } // namespace prefs 106 } // namespace prefs
OLDNEW
« no previous file with comments | « ios/chrome/browser/pref_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698