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

Unified Diff: components/search_engines/template_url_service.cc

Issue 2815643007: TemplateURLService: notify observers of shutdown (Closed)
Patch Set: review Created 3 years, 8 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
« no previous file with comments | « no previous file | components/search_engines/template_url_service_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/search_engines/template_url_service.cc
diff --git a/components/search_engines/template_url_service.cc b/components/search_engines/template_url_service.cc
index ca6401082f4f5c12ba4f65d6e200f92f2f448f07..ab0ba5766fbc705618980ded02603c0ab076ef00 100644
--- a/components/search_engines/template_url_service.cc
+++ b/components/search_engines/template_url_service.cc
@@ -872,6 +872,9 @@ void TemplateURLService::OnHistoryURLVisited(const URLVisitedDetails& details) {
}
void TemplateURLService::Shutdown() {
+ for (auto& observer : model_observers_)
+ observer.OnTemplateURLServiceShuttingDown();
+
if (client_)
client_->Shutdown();
// This check has to be done at Shutdown() instead of in the dtor to ensure
« no previous file with comments | « no previous file | components/search_engines/template_url_service_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698