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

Unified Diff: trunk/src/chrome/test/data/webui/print_preview.cc

Issue 299273003: Revert 272587 "Remove kEnablePrintPreview now that the pdf plugi..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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 | « trunk/src/chrome/test/data/webui/print_preview.h ('k') | trunk/src/tools/bisect-builds.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/test/data/webui/print_preview.cc
===================================================================
--- trunk/src/chrome/test/data/webui/print_preview.cc (revision 272619)
+++ trunk/src/chrome/test/data/webui/print_preview.cc (working copy)
@@ -4,6 +4,17 @@
#include "chrome/test/data/webui/print_preview.h"
+#include "base/command_line.h"
+#include "chrome/common/chrome_switches.h"
+
PrintPreviewWebUITest::PrintPreviewWebUITest() {}
PrintPreviewWebUITest::~PrintPreviewWebUITest() {}
+
+// Always print preview for testing.
+void PrintPreviewWebUITest::SetUpCommandLine(CommandLine* command_line) {
+ WebUIBrowserTest::SetUpCommandLine(command_line);
+#if !defined(GOOGLE_CHROME_BUILD)
+ command_line->AppendSwitch(switches::kEnablePrintPreview);
+#endif
+}
« no previous file with comments | « trunk/src/chrome/test/data/webui/print_preview.h ('k') | trunk/src/tools/bisect-builds.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698