| Index: chrome/browser/printing/print_preview_tab_controller_unittest.cc
|
| diff --git a/chrome/browser/printing/print_preview_tab_controller_unittest.cc b/chrome/browser/printing/print_preview_tab_controller_unittest.cc
|
| index fe84d1cfaac4980711b51a8ac615958c00b7437d..5d0d9d5049106cbffc544ff2a80b3f18bdfc55f3 100644
|
| --- a/chrome/browser/printing/print_preview_tab_controller_unittest.cc
|
| +++ b/chrome/browser/printing/print_preview_tab_controller_unittest.cc
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include "chrome/browser/prefs/pref_service.h"
|
| #include "chrome/browser/printing/print_preview_tab_controller.h"
|
| -#include "chrome/browser/printing/print_preview_unit_test_base.h"
|
| #include "chrome/browser/printing/print_view_manager.h"
|
| #include "chrome/browser/ui/browser_commands.h"
|
| #include "chrome/browser/ui/browser_list.h"
|
| @@ -11,6 +11,8 @@
|
| #include "chrome/browser/ui/tab_contents/tab_contents.h"
|
| #include "chrome/browser/ui/tabs/tab_strip_model.h"
|
| #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
|
| +#include "chrome/common/pref_names.h"
|
| +#include "chrome/test/base/browser_with_test_window_test.h"
|
| #include "content/public/browser/navigation_details.h"
|
| #include "content/public/browser/notification_service.h"
|
| #include "content/public/browser/notification_types.h"
|
| @@ -28,10 +30,17 @@
|
| #define MAYBE_ClearInitiatorTabDetails ClearInitiatorTabDetails
|
| #endif
|
|
|
| -class PrintPreviewTabControllerUnitTest : public PrintPreviewUnitTestBase {
|
| +class PrintPreviewTabControllerUnitTest : public BrowserWithTestWindowTest {
|
| public:
|
| PrintPreviewTabControllerUnitTest() {}
|
| virtual ~PrintPreviewTabControllerUnitTest() {}
|
| +
|
| + protected:
|
| + virtual void SetUp() OVERRIDE {
|
| + BrowserWithTestWindowTest::SetUp();
|
| +
|
| + profile()->GetPrefs()->SetBoolean(prefs::kPrintPreviewDisabled, false);
|
| + }
|
| };
|
|
|
| // Create/Get a preview tab for initiator tab.
|
|
|