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

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

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.cc
diff --git a/chrome/browser/search_engines/template_url_service.cc b/chrome/browser/search_engines/template_url_service.cc
index d1314053af73d3690a11ebfdc6d61416d2b035dd..982d8f43a8c33d7cb0bec7b6474c99b2f2ad9161 100644
--- a/chrome/browser/search_engines/template_url_service.cc
+++ b/chrome/browser/search_engines/template_url_service.cc
@@ -322,6 +322,12 @@ void TemplateURLService::Remove(const TemplateURL* template_url) {
NotifyObservers();
}
+void TemplateURLService::Update(const TemplateURL* existing_turl,
+ const TemplateURL& new_values) {
+ UpdateNoNotify(existing_turl, new_values);
sky 2011/11/28 17:03:11 Add test coverage of this.
Ivan Korotkov 2011/11/29 10:13:47 Done.
+ NotifyObservers();
+}
+
void TemplateURLService::RemoveAutoGeneratedBetween(base::Time created_after,
base::Time created_before) {
bool should_notify = false;

Powered by Google App Engine
This is Rietveld 408576698