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

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: Revised approach, see bug description Created 7 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 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..796a8567f5209853a57e8455d9635a2d8bdfaeca 100644
--- a/chrome/browser/search_engines/template_url_service.h
+++ b/chrome/browser/search_engines/template_url_service.h
@@ -446,6 +446,12 @@ 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.
+ void UpdateTemplateURLIfPrepopulated(TemplateURL* existing_turl);
+
// Returns the preferences we use.
PrefService* GetPrefs();
« no previous file with comments | « no previous file | chrome/browser/search_engines/template_url_service.cc » ('j') | chrome/browser/search_engines/util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698