fix: misc-use-internal-linkage warnings (#44872)
* refactor: fix misc-use-internal-linkage warnings: move impl functions into anonymous namespace so that they're not visible to other compilation units
This commit is contained in:
parent
5ca3f950e9
commit
a92b3944a1
9 changed files with 54 additions and 14 deletions
|
@ -79,6 +79,8 @@ bool IsDeviceNameValid(const std::u16string& device_name) {
|
|||
#endif
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
// Duplicated from chrome/browser/printing/print_view_manager_common.cc
|
||||
content::RenderFrameHost* GetFullPagePlugin(content::WebContents* contents) {
|
||||
content::RenderFrameHost* full_page_plugin = nullptr;
|
||||
|
@ -98,6 +100,8 @@ content::RenderFrameHost* GetFullPagePlugin(content::WebContents* contents) {
|
|||
return full_page_plugin;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
// Pick the right RenderFrameHost based on the WebContents.
|
||||
// Modified from chrome/browser/printing/print_view_manager_common.cc
|
||||
content::RenderFrameHost* GetRenderFrameHostToUse(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue