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

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

Issue 12084076: Ensure post-sync TemplateURL of prepopulated engines use built-in version. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change according to pkasting comments. Created 7 years, 10 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/template_url_service.h
diff --git a/chrome/browser/search_engines/template_url_service.h b/chrome/browser/search_engines/template_url_service.h
index 084460ac463fa081306e328e6f9db18d601c9841..be087bfd86b8b37e2daefdc129202d68ad77c4ac 100644
--- a/chrome/browser/search_engines/template_url_service.h
+++ b/chrome/browser/search_engines/template_url_service.h
@@ -446,6 +446,13 @@ class TemplateURLService : public WebDataServiceConsumer,
const TemplateURL& new_values,
const SearchTermsData& old_search_terms_data);
+ // If the TemplateURL comes from a prepopulated URL available in the current
+ // country, update all its fields save for the keyword, short name and id so
+ // that they match the internal prepopulated URL. TemplateURLs not coming from
+ // a prepopulated URL are not modified.
+ static void UpdateTemplateURLIfPrepopulated(TemplateURL* existing_turl,
+ Profile* profile);
+
// Returns the preferences we use.
PrefService* GetPrefs();
« no previous file with comments | « chrome/browser/search_engines/prepopulated_engines.json ('k') | chrome/browser/search_engines/template_url_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698