summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_automation.cc
diff options
context:
space:
mode:
authorgrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-14 16:21:27 +0000
committergrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-14 16:21:27 +0000
commitda8cb193edebc8dc78a422df2633340e6a606cde (patch)
treead529c5ade25a5c05198197f38a35c1fdd245001 /chrome_frame/chrome_frame_automation.cc
parent3b250964a2bc37d956755173fe983a3c17f5951a (diff)
downloadchromium_src-da8cb193edebc8dc78a422df2633340e6a606cde.zip
chromium_src-da8cb193edebc8dc78a422df2633340e6a606cde.tar.gz
chromium_src-da8cb193edebc8dc78a422df2633340e6a606cde.tar.bz2
Disable Chrome's print preview in Chrome Frame.
BUG=95568 TEST=do something on a page that calls window.print(); expect IE's print dialog to appear. should be covered by new test in chrome_frame_tests.exe. Review URL: http://codereview.chromium.org/9350044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121891 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_automation.cc')
-rw-r--r--chrome_frame/chrome_frame_automation.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc
index a816e9a..c7f144f 100644
--- a/chrome_frame/chrome_frame_automation.cc
+++ b/chrome_frame/chrome_frame_automation.cc
@@ -270,6 +270,11 @@ void AutomationProxyCacheEntry::CreateProxy(ChromeFrameLaunchParams* params,
command_line->AppendSwitch(switches::kDisablePopupBlocking);
+#if defined(GOOGLE_CHROME_BUILD)
+ // Chrome Frame should use the native print dialog.
+ command_line->AppendSwitch(switches::kDisablePrintPreview);
+#endif
+
// Disable the "Whoa! Chrome has crashed." dialog, because that isn't very
// useful for Chrome Frame users.
#ifndef NDEBUG