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

Side by Side Diff: chrome/browser/printing/print_preview_test.cc

Issue 488853002: Removed --disable-print-preview switch and policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/printing/print_preview_test.h" 5 #include "chrome/browser/printing/print_preview_test.h"
6 6
7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_iterator.h" 8 #include "chrome/browser/ui/browser_iterator.h"
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" 9 #include "chrome/browser/ui/tabs/tab_strip_model.h"
11 #include "chrome/common/pref_names.h"
12 #include "chrome/test/base/test_browser_window.h" 10 #include "chrome/test/base/test_browser_window.h"
13 #include "components/web_modal/web_contents_modal_dialog_host.h" 11 #include "components/web_modal/web_contents_modal_dialog_host.h"
14 #include "content/public/browser/plugin_service.h" 12 #include "content/public/browser/plugin_service.h"
15 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
16 14
17 using web_modal::WebContentsModalDialogHost; 15 using web_modal::WebContentsModalDialogHost;
18 using web_modal::ModalDialogHostObserver; 16 using web_modal::ModalDialogHostObserver;
19 17
20 namespace { 18 namespace {
21 19
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 PrintPreviewTest::PrintPreviewTest() {} 70 PrintPreviewTest::PrintPreviewTest() {}
73 PrintPreviewTest::~PrintPreviewTest() {} 71 PrintPreviewTest::~PrintPreviewTest() {}
74 72
75 void PrintPreviewTest::SetUp() { 73 void PrintPreviewTest::SetUp() {
76 BrowserWithTestWindowTest::SetUp(); 74 BrowserWithTestWindowTest::SetUp();
77 75
78 // The PluginService will be destroyed at the end of the test (due to the 76 // The PluginService will be destroyed at the end of the test (due to the
79 // ShadowingAtExitManager in our base class). 77 // ShadowingAtExitManager in our base class).
80 content::PluginService::GetInstance()->Init(); 78 content::PluginService::GetInstance()->Init();
81 content::PluginService::GetInstance()->DisablePluginsDiscoveryForTesting(); 79 content::PluginService::GetInstance()->DisablePluginsDiscoveryForTesting();
82
83 profile()->GetPrefs()->SetBoolean(prefs::kPrintPreviewDisabled, false);
84 } 80 }
85 81
86 BrowserWindow* PrintPreviewTest::CreateBrowserWindow() { 82 BrowserWindow* PrintPreviewTest::CreateBrowserWindow() {
87 return new PrintPreviewTestBrowserWindow; 83 return new PrintPreviewTestBrowserWindow;
88 } 84 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/command_line_pref_store.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698