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

Unified Diff: chrome/browser/search_engines/template_url_prepopulate_data.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: 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_prepopulate_data.h
diff --git a/chrome/browser/search_engines/template_url_prepopulate_data.h b/chrome/browser/search_engines/template_url_prepopulate_data.h
index aee76791ab31ff98bb68e7d6fdc88c05146281b9..5a3ee9d6b18fc53c8c2d943e1b353b6eaac7c048 100644
--- a/chrome/browser/search_engines/template_url_prepopulate_data.h
+++ b/chrome/browser/search_engines/template_url_prepopulate_data.h
@@ -43,6 +43,11 @@ void RegisterUserPrefs(PrefServiceSyncable* prefs);
// file then it returns the version specified there.
int GetDataVersion(PrefService* prefs);
+// The caller owns the returned TemplateURL. Returns NULL if |prepopulate_id|
+// does not correspond to a built-in prepopulated engines.
+TemplateURL* MakeTemplateURLFromPrepopulateId(Profile* profile,
+ int prepopulate_id);
+
// Loads the set of TemplateURLs from the prepopulate data. Ownership of the
// TemplateURLs is passed to the caller. On return,
// |default_search_provider_index| is set to the index of the default search

Powered by Google App Engine
This is Rietveld 408576698