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

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

Issue 8704007: Protector adds the default prepopulated engine if it was removed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added histograms for missing/fallback DSP. Created 9 years, 1 month 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 fe76da59f7f8f04ccf25e5cea941baec48e68f2d..d97dcbeb22ce8d16a6a00aeb35d7409c54ff8e86 100644
--- a/chrome/browser/search_engines/template_url_service.h
+++ b/chrome/browser/search_engines/template_url_service.h
@@ -145,6 +145,10 @@ class TemplateURLService : public WebDataServiceConsumer,
// This fails if the supplied template_url is the default search provider.
void Remove(const TemplateURL* template_url);
+ // Updates the information in |existing_turl| using the information from
+ // |new_values|, but the ID for |existing_turl| is retained.
+ void Update(const TemplateURL* existing_turl, const TemplateURL& new_values);
+
// Removes all auto-generated keywords that were created in the specified
// range.
void RemoveAutoGeneratedBetween(base::Time created_after,

Powered by Google App Engine
This is Rietveld 408576698