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

Unified Diff: chrome/browser/search_engines/util.h

Issue 15572002: Implemented 'Reset Search engines' feature. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Reset Google search URL together with search engines Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search_engines/util.h
diff --git a/chrome/browser/search_engines/util.h b/chrome/browser/search_engines/util.h
index 432569f363a2cd3f3485d1df4a2019264afdc41d..b47b2503c238e21f36bcfa8b9f19e30d633615d8 100644
--- a/chrome/browser/search_engines/util.h
+++ b/chrome/browser/search_engines/util.h
@@ -50,6 +50,19 @@ void GetSearchProvidersUsingKeywordResult(
int* new_resource_keyword_version,
std::set<std::string>* removed_keyword_guids);
+// Like GetSearchProvidersUsingKeywordResult(), but allows the caller to pass in
+// engines in |template_urls| instead of getting them via processing a web data
+// service request.
+// |*new_resource_keyword_version| should contain current version of
+// |*template_urls|.
Peter Kasting 2013/05/29 04:04:41 Nit: How about we name it |resource_keyword_versio
vasilii 2013/05/29 08:30:18 Done.
+void GetSearchProvidersUsingLoadedEngines(
+ WebDataService* service,
+ Profile* profile,
+ TemplateURLService::TemplateURLVector* template_urls,
+ TemplateURL** default_search_provider,
+ int* new_resource_keyword_version,
+ std::set<std::string>* removed_keyword_guids);
+
// Due to a bug, the |input_encodings| field of TemplateURLData could have
// contained duplicate entries. This removes those entries and returns whether
// any were found.

Powered by Google App Engine
This is Rietveld 408576698