Index: chrome/browser/ui/browser_commands.cc |
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc |
index c612bc7f27494e29f8092bdf71b258ac17763e77..2222cd9a3b5ec7e25fbfeea41e15876c76b40a14 100644 |
--- a/chrome/browser/ui/browser_commands.cc |
+++ b/chrome/browser/ui/browser_commands.cc |
@@ -875,11 +875,11 @@ void ShowWebsiteSettings( |
void Print(Browser* browser) { |
#if BUILDFLAG(ENABLE_PRINTING) |
- printing::StartPrint( |
- browser->tab_strip_model()->GetActiveWebContents(), |
- browser->profile()->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled), |
- false); |
-#endif // BUILDFLAG(ENABLE_PRINTING) |
+ auto* web_contents = browser->tab_strip_model()->GetActiveWebContents(); |
+ printing::StartPrint(web_contents, browser->profile()->GetPrefs()->GetBoolean( |
+ prefs::kPrintPreviewDisabled), |
+ false /* has_selection? */); |
+#endif |
} |
bool CanPrint(Browser* browser) { |