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

Unified Diff: trunk/src/chrome/browser/printing/print_preview_dialog_controller_browsertest.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
Index: trunk/src/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc
===================================================================
--- trunk/src/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc (revision 272619)
+++ trunk/src/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc (working copy)
@@ -2,12 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/command_line.h"
#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#include "chrome/browser/printing/print_preview_dialog_controller.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
+#include "chrome/common/chrome_switches.h"
#include "chrome/common/print_messages.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/base/in_process_browser_test.h"
@@ -121,6 +123,12 @@
}
private:
+ virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
+#if !defined(GOOGLE_CHROME_BUILD)
+ command_line->AppendSwitch(switches::kEnablePrintPreview);
+#endif
+ }
+
virtual void SetUpOnMainThread() OVERRIDE {
WebContents* first_tab =
browser()->tab_strip_model()->GetActiveWebContents();
« no previous file with comments | « trunk/src/chrome/browser/prefs/command_line_pref_store.cc ('k') | trunk/src/chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698