2022-02-18 17:33:40 +01:00
|
|
|
diff --git chrome/browser/printing/print_view_manager_common.cc chrome/browser/printing/print_view_manager_common.cc
|
2022-06-17 15:28:55 +02:00
|
|
|
index 3ab701aaad754..4bb32940701c5 100644
|
2022-02-18 17:33:40 +01:00
|
|
|
--- chrome/browser/printing/print_view_manager_common.cc
|
|
|
|
+++ chrome/browser/printing/print_view_manager_common.cc
|
2022-06-17 15:28:55 +02:00
|
|
|
@@ -44,6 +44,8 @@ bool StoreFullPagePlugin(content::WebContents** result,
|
2022-02-18 17:33:40 +01:00
|
|
|
}
|
|
|
|
#endif // BUILDFLAG(ENABLE_EXTENSIONS)
|
|
|
|
|
|
|
|
+} // namespace
|
|
|
|
+
|
|
|
|
// Pick the right RenderFrameHost based on the WebContents.
|
|
|
|
content::RenderFrameHost* GetRenderFrameHostToUse(
|
|
|
|
content::WebContents* contents) {
|
2022-06-17 15:28:55 +02:00
|
|
|
@@ -57,8 +59,6 @@ content::RenderFrameHost* GetRenderFrameHostToUse(
|
|
|
|
return GetFrameToPrint(contents);
|
2022-02-18 17:33:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
-} // namespace
|
|
|
|
-
|
|
|
|
void StartPrint(
|
|
|
|
content::WebContents* contents,
|
|
|
|
mojo::PendingAssociatedRemote<mojom::PrintRenderer> print_renderer,
|
|
|
|
diff --git chrome/browser/printing/print_view_manager_common.h chrome/browser/printing/print_view_manager_common.h
|
|
|
|
index bf67ddba35b34..7f4dcc216bbb4 100644
|
|
|
|
--- chrome/browser/printing/print_view_manager_common.h
|
|
|
|
+++ chrome/browser/printing/print_view_manager_common.h
|
|
|
|
@@ -36,6 +36,10 @@ content::RenderFrameHost* GetFrameToPrint(content::WebContents* contents);
|
|
|
|
// guest's WebContents instead.
|
|
|
|
content::WebContents* GetWebContentsToUse(content::WebContents* contents);
|
|
|
|
|
|
|
|
+// Pick the right RenderFrameHost based on the WebContents.
|
|
|
|
+content::RenderFrameHost* GetRenderFrameHostToUse(
|
|
|
|
+ content::WebContents* contents);
|
|
|
|
+
|
|
|
|
} // namespace printing
|
|
|
|
|
|
|
|
#endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_
|