mirror of
https://github.com/electron/electron.git
synced 2026-02-26 03:01:17 -05:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user