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

Side by Side Diff: components/search_engines/search_engines_pref_names.cc

Issue 2598033004: Remove old default search preferences. (Closed)
Patch Set: Fixed after review, round 2 Created 3 years, 11 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
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 "components/search_engines/search_engines_pref_names.h" 5 #include "components/search_engines/search_engines_pref_names.h"
6 6
7 namespace prefs { 7 namespace prefs {
8 8
9 // The GUID of the synced default search provider. Note that this acts like a 9 // The GUID of the synced default search provider. Note that this acts like a
10 // pointer to which synced search engine should be the default, rather than the 10 // pointer to which synced search engine should be the default, rather than the
11 // prefs below which describe the locally saved default search provider details 11 // prefs below which describe the locally saved default search provider details
12 // (and are not synced). This is ignored in the case of the default search 12 // (and are not synced). This is ignored in the case of the default search
13 // provider being managed by policy. 13 // provider being managed by policy.
14 const char kSyncedDefaultSearchProviderGUID[] = 14 const char kSyncedDefaultSearchProviderGUID[] =
15 "default_search_provider.synced_guid"; 15 "default_search_provider.synced_guid";
16 16
17 // Whether having a default search provider is enabled. 17 // Whether having a default search provider is enabled.
18 const char kDefaultSearchProviderEnabled[] = 18 const char kDefaultSearchProviderEnabled[] =
19 "default_search_provider.enabled"; 19 "default_search_provider.enabled";
20 20
21 // The URL (as understood by TemplateURLRef) the default search provider uses
22 // for searches.
23 const char kDefaultSearchProviderSearchURL[] =
24 "default_search_provider.search_url";
25
26 // The URL (as understood by TemplateURLRef) the default search provider uses
27 // for suggestions.
28 const char kDefaultSearchProviderSuggestURL[] =
29 "default_search_provider.suggest_url";
30
31 // The URL (as understood by TemplateURLRef) the default search provider uses
32 // for instant results.
33 const char kDefaultSearchProviderInstantURL[] =
34 "default_search_provider.instant_url";
35
36 // The URL (as understood by TemplateURLRef) the default search provider uses
37 // for image search results.
38 const char kDefaultSearchProviderImageURL[] =
39 "default_search_provider.image_url";
40
41 // The URL (as understood by TemplateURLRef) the default search provider uses
42 // for the new tab page.
43 const char kDefaultSearchProviderNewTabURL[] =
44 "default_search_provider.new_tab_url";
45
46 // The string of post parameters (as understood by TemplateURLRef) the default
47 // search provider uses for searches by using POST.
48 const char kDefaultSearchProviderSearchURLPostParams[] =
49 "default_search_provider.search_url_post_params";
50
51 // The string of post parameters (as understood by TemplateURLRef) the default
52 // search provider uses for suggestions by using POST.
53 const char kDefaultSearchProviderSuggestURLPostParams[] =
54 "default_search_provider.suggest_url_post_params";
55
56 // The string of post parameters (as understood by TemplateURLRef) the default
57 // search provider uses for instant results by using POST.
58 const char kDefaultSearchProviderInstantURLPostParams[] =
59 "default_search_provider.instant_url_post_params";
60
61 // The string of post parameters (as understood by TemplateURLRef) the default
62 // search provider uses for image search results by using POST.
63 const char kDefaultSearchProviderImageURLPostParams[] =
64 "default_search_provider.image_url_post_params";
65
66 // The Favicon URL (as understood by TemplateURLRef) of the default search
67 // provider.
68 const char kDefaultSearchProviderIconURL[] =
69 "default_search_provider.icon_url";
70
71 // The input encoding (as understood by TemplateURLRef) supported by the default
72 // search provider. The various encodings are separated by ';'
73 const char kDefaultSearchProviderEncodings[] =
74 "default_search_provider.encodings";
75
76 // The name of the default search provider.
77 const char kDefaultSearchProviderName[] = "default_search_provider.name";
78
79 // The keyword of the default search provider.
80 const char kDefaultSearchProviderKeyword[] = "default_search_provider.keyword";
81
82 // The id of the default search provider.
83 const char kDefaultSearchProviderID[] = "default_search_provider.id";
84
85 // The prepopulate id of the default search provider.
86 const char kDefaultSearchProviderPrepopulateID[] =
87 "default_search_provider.prepopulate_id";
88
89 // The alternate urls of the default search provider.
90 const char kDefaultSearchProviderAlternateURLs[] =
91 "default_search_provider.alternate_urls";
92
93 // Search term placement query parameter for the default search provider.
94 const char kDefaultSearchProviderSearchTermsReplacementKey[] =
95 "default_search_provider.search_terms_replacement_key";
96
97 // The dictionary key used when the default search providers are given 21 // The dictionary key used when the default search providers are given
98 // in the preferences file. Normally they are copied from the master 22 // in the preferences file. Normally they are copied from the master
99 // preferences file. 23 // preferences file.
100 const char kSearchProviderOverrides[] = "search_provider_overrides"; 24 const char kSearchProviderOverrides[] = "search_provider_overrides";
101 // The format version for the dictionary above. 25 // The format version for the dictionary above.
102 const char kSearchProviderOverridesVersion[] = 26 const char kSearchProviderOverridesVersion[] =
103 "search_provider_overrides_version"; 27 "search_provider_overrides_version";
104 28
105 // Integer containing the system Country ID the first time we checked the 29 // Integer containing the system Country ID the first time we checked the
106 // template URL prepopulate data. This is used to avoid adding a whole bunch of 30 // template URL prepopulate data. This is used to avoid adding a whole bunch of
107 // new search engine choices if prepopulation runs when the user's Country ID 31 // new search engine choices if prepopulation runs when the user's Country ID
108 // differs from their previous Country ID. This pref does not exist until 32 // differs from their previous Country ID. This pref does not exist until
109 // prepopulation has been run at least once. 33 // prepopulation has been run at least once.
110 const char kCountryIDAtInstall[] = "countryid_at_install"; 34 const char kCountryIDAtInstall[] = "countryid_at_install";
111 35
112 } // namespace prefs 36 } // namespace prefs
OLDNEW
« no previous file with comments | « components/search_engines/search_engines_pref_names.h ('k') | components/search_engines/template_url_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698