Chromium Code Reviews| 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 923fa557248e5806dda48f64eb23fcf2964009d9..935aa5fefa1c2ad85e801e256926f0e862ce5506 100644 |
| --- a/components/search_engines/template_url_service.cc |
| +++ b/components/search_engines/template_url_service.cc |
| @@ -806,6 +806,11 @@ void TemplateURLService::Shutdown() { |
| web_data_service_->CancelRequest(load_handle_); |
| } |
| web_data_service_ = NULL; |
| + |
| + // Notify observers so they can unregister themselves. |
| + // TODO(bauerb): Observers shouldn't outlive this class; see |
| + // https://crbug.com/483528. |
| + on_loaded_callbacks_.Notify(); |
|
Peter Kasting
2015/05/11 22:15:06
This seems like a strange fix. We're calling obse
Bernhard Bauer
2015/05/12 13:58:24
This appears to be an existing issue in BrowsingDa
Peter Kasting
2015/05/12 18:54:07
Wouldn't another alternative be for TemplateURLSer
|
| } |
| syncer::SyncDataList TemplateURLService::GetAllSyncData( |