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

Side by Side Diff: components/search_engines/template_url_prepopulate_data.h

Issue 2623833005: Revert of Make extensions DSE persistent in browser prefs (Closed)
Patch Set: 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 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ 5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_
6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ 6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 24 matching lines...) Expand all
35 // file then it returns the version specified there. 35 // file then it returns the version specified there.
36 int GetDataVersion(PrefService* prefs); 36 int GetDataVersion(PrefService* prefs);
37 37
38 // Returns the prepopulated URLs for the current country. 38 // Returns the prepopulated URLs for the current country.
39 // |default_search_provider_index| is set to the index of the default search 39 // |default_search_provider_index| is set to the index of the default search
40 // provider within the returned vector. 40 // provider within the returned vector.
41 std::vector<std::unique_ptr<TemplateURLData>> GetPrepopulatedEngines( 41 std::vector<std::unique_ptr<TemplateURLData>> GetPrepopulatedEngines(
42 PrefService* prefs, 42 PrefService* prefs,
43 size_t* default_search_provider_index); 43 size_t* default_search_provider_index);
44 44
45 // Returns the prepopulated search engine with the given |prepopulated_id|.
46 std::unique_ptr<TemplateURLData> GetPrepopulatedEngine(PrefService* prefs,
47 int prepopulated_id);
48
49 #if defined(OS_ANDROID) 45 #if defined(OS_ANDROID)
50 // Returns the prepopulated URLs associated with |locale|, if it differs from 46 // Returns the prepopulated URLs associated with |locale|, if it differs from
51 // the current country. |locale| should be a two-character uppercase ISO 3166-1 47 // the current country. |locale| should be a two-character uppercase ISO 3166-1
52 // country code. If the given locale is the same as the existing locale, returns 48 // country code. If the given locale is the same as the existing locale, returns
53 // an empty vector. 49 // an empty vector.
54 std::vector<std::unique_ptr<TemplateURLData>> GetLocalPrepopulatedEngines( 50 std::vector<std::unique_ptr<TemplateURLData>> GetLocalPrepopulatedEngines(
55 const std::string& locale, 51 const std::string& locale,
56 PrefService* prefs); 52 PrefService* prefs);
57 #endif 53 #endif
58 54
(...skipping 18 matching lines...) Expand all
77 // of search engines when user switches device region settings. For use on iOS 73 // of search engines when user switches device region settings. For use on iOS
78 // only. 74 // only.
79 // TODO(ios): Once user can customize search engines ( http://crbug.com/153047 ) 75 // TODO(ios): Once user can customize search engines ( http://crbug.com/153047 )
80 // this declaration should be removed and the definition in the .cc file be 76 // this declaration should be removed and the definition in the .cc file be
81 // moved back to the anonymous namespace. 77 // moved back to the anonymous namespace.
82 int GetCurrentCountryID(); 78 int GetCurrentCountryID();
83 79
84 } // namespace TemplateURLPrepopulateData 80 } // namespace TemplateURLPrepopulateData
85 81
86 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ 82 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_
OLDNEW
« no previous file with comments | « components/search_engines/template_url.cc ('k') | components/search_engines/template_url_prepopulate_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698