Index: trunk/src/chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc |
=================================================================== |
--- trunk/src/chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc (revision 272619) |
+++ trunk/src/chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc (working copy) |
@@ -2,6 +2,7 @@ |
// 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/prefs/pref_service.h" |
#include "base/strings/utf_string_conversions.h" |
#include "chrome/app/chrome_command_ids.h" |
@@ -12,6 +13,7 @@ |
#include "chrome/browser/ui/browser_commands.h" |
#include "chrome/browser/ui/browser_dialogs.h" |
#include "chrome/browser/ui/tabs/tab_strip_model.h" |
+#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.h" |
#include "chrome/test/base/in_process_browser_test.h" |
@@ -44,6 +46,12 @@ |
public: |
PrintPreviewTest() {} |
+#if !defined(GOOGLE_CHROME_BUILD) |
+ virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
+ command_line->AppendSwitch(switches::kEnablePrintPreview); |
+ } |
+#endif |
+ |
void Print() { |
content::TestNavigationObserver nav_observer(NULL); |
nav_observer.StartWatchingNewWebContents(); |