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

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: Thu Sep 25 18:19:02 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
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/policy/configuration_policy_handler_list_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7503e02b29245277e409ef1c5b21fc9c0e4a33b7..3e15ef8eefcb3059f7ff20a89220258ed905d854 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 &&
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/policy/configuration_policy_handler_list_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698