Files
Anthony Tseng b7ef1d5d4e Add page content extraction for history embeddings after Cr147 (#35130)
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.
2026-04-10 19:44:59 +02:00
..