6632993: PDF Searchify IPH: Use embedder WebContents for GuestView PDF

Refs https://chromium-review.googlesource.com/c/chromium/src/+/6632993
This commit is contained in:
David Sanders
2025-07-23 21:53:47 -07:00
parent 2fa974df37
commit be61945218
2 changed files with 2 additions and 6 deletions

View File

@@ -76,9 +76,5 @@ void ElectronPDFDocumentHelperClient::SetPluginCanSave(
#if BUILDFLAG(ENABLE_SCREEN_AI_SERVICE)
void ElectronPDFDocumentHelperClient::OnSearchifyStarted(
content::WebContents* contents) {
// TODO(crbug.com/360803943): Add test.
// Show the promo only when ScreenAI component is available and OCR can be
// done.
}
content::RenderFrameHost* render_frame_host) {}
#endif

View File

@@ -24,7 +24,7 @@ class ElectronPDFDocumentHelperClient : public pdf::PDFDocumentHelperClient {
void SetPluginCanSave(content::RenderFrameHost* render_frame_host,
bool can_save) override;
#if BUILDFLAG(ENABLE_SCREEN_AI_SERVICE)
void OnSearchifyStarted(content::WebContents* contents) override;
void OnSearchifyStarted(content::RenderFrameHost* render_frame_host) override;
#endif
};