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

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

Issue 488853002: Removed --disable-print-preview switch and policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tue Aug 19 16:35:18 PDT 2014 Created 6 years, 4 months 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 cd2fdbdf4a78c750861840b86677663b921f7bf7..fbd211b945da6567a12f91d43ac75dca6589610f 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -855,10 +855,7 @@ void Print(Browser* browser) {
#if defined(ENABLE_FULL_PRINTING)
printing::PrintViewManager* print_view_manager =
printing::PrintViewManager::FromWebContents(contents);
- if (browser->profile()->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled))
- print_view_manager->PrintNow();
- else
- print_view_manager->PrintPreviewNow(false);
+ print_view_manager->PrintPreviewNow(false);
#else
printing::PrintViewManagerBasic* print_view_manager =
printing::PrintViewManagerBasic::FromWebContents(contents);

Powered by Google App Engine
This is Rietveld 408576698