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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 597933002: Restored disable print preview policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wed Sep 24 10:32:18 PDT 2014 Created 6 years, 3 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/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 65b0a7762efee86ab154f52097c6d0684b945620..0949766784c30926a49d57f4c2a437d0e0483aea 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1289,6 +1289,9 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
switches::kDisableClientSidePhishingDetection);
}
+ if (prefs->GetBoolean(prefs::kPrintPreviewDisabled))
+ command_line->AppendSwitch(switches::kDisablePrintPreview);
+
InstantService* instant_service =
InstantServiceFactory::GetForProfile(profile);
if (instant_service &&

Powered by Google App Engine
This is Rietveld 408576698