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

Unified Diff: chrome_frame/chrome_frame_automation.cc

Issue 9350044: Disable Chrome's print preview in Chrome Frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromium build Created 8 years, 10 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 | « no previous file | chrome_frame/chrome_launcher.cc » ('j') | chrome_frame/test/ui_test.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_automation.cc
diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc
index a816e9a12d2d360246a188ac03891381768f1680..c7f144f4bf326c7aa69c9032683256460ccb8ff0 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
« no previous file with comments | « no previous file | chrome_frame/chrome_launcher.cc » ('j') | chrome_frame/test/ui_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698