| 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();
|
|
|