Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6822)

Unified Diff: chrome/browser/ui/browser_commands.cc

Issue 2508923003: Make printing work better with OOPIF. (try 2) (Closed)
Patch Set: Fix android_webview Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index 1c724ab25670647d0ac4e0cceadacdfe8b06b83d..e0269a8b693726b4c3e80e3dfd607876ad2fd6fd 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -906,11 +906,11 @@ void ShowWebsiteSettings(Browser* browser,
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) {
« no previous file with comments | « chrome/browser/printing/printing_message_filter.cc ('k') | chrome/browser/ui/cocoa/applescript/tab_applescript.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698