Use upstream page content extraction pipeline
Enable the upstream PageContentAnnotationsWebContentsObserver by:
- Overriding OptimizationGuideKeyedServiceFactory to return the service
when kHistoryEmbeddings is enabled (even with kOptimizationHints
disabled), so PageContentAnnotationsService can construct
- Overriding PageContentAnnotationsServiceFactory and
PageContentExtractionServiceFactory to check kHistoryEmbeddings
instead of upstream ShouldEnablePageContentAnnotations
The OptimizationGuideKeyedService is safe to enable because Brave
blocks remote fetching via IsUserPermittedToFetchFromRemoteOptimizationGuide
returning false.