| Commit-Queue | +0 |
Hi Nicolas, could you please take a look? Thanks!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
base::WeakPtrFactory<SearchEnginesHandler> weak_ptr_factory_{this};unused? we should remove it
// TemplateURLServiceObserver notification.nit: convention for grouping overridden methods
```suggestion
// TemplateURLServiceObserver implementation.
```
pref_change_registrar_.Init(profile_->GetPrefs());looks unused, we should be able to remove it
list_controller_.table_model()->SetObserver(nullptr);is this the right thing to do? Doesn't it mean that it could still be updating and firing events even if the handler is not supposed to be active? I see a lot of other settings handlers wiring up their observers in `OnJavascriptAllowed` and unregistering them in `OnJavascriptDisallowed`. I think we should follow that pattern. [WebUI docs](https://chromium.googlesource.com/chromium/src/+/HEAD/docs/webui/webui_explainer.md#webuimessagehandler_allowjavascript) also mention it.
IDK how relevant it is in modern WebUI, but If we want to diverge from it, we should check with dpapad@
In the meantime, since we have `profile_`, we should be able to rewire the observers easily
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |