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

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

Issue 1862513003: Remove NPAPI from browser and utility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
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 "chrome/test/base/dialog_test_browser_window.h" 7 #include "chrome/test/base/dialog_test_browser_window.h"
8 #include "content/public/browser/plugin_service.h" 8 #include "content/public/browser/plugin_service.h"
9 9
10 PrintPreviewTest::PrintPreviewTest() {} 10 PrintPreviewTest::PrintPreviewTest() {}
11 PrintPreviewTest::~PrintPreviewTest() {} 11 PrintPreviewTest::~PrintPreviewTest() {}
12 12
13 void PrintPreviewTest::SetUp() { 13 void PrintPreviewTest::SetUp() {
14 BrowserWithTestWindowTest::SetUp(); 14 BrowserWithTestWindowTest::SetUp();
15 15
16 // The PluginService will be destroyed at the end of the test (due to the 16 // The PluginService will be destroyed at the end of the test (due to the
17 // ShadowingAtExitManager in our base class). 17 // ShadowingAtExitManager in our base class).
18 content::PluginService::GetInstance()->Init(); 18 content::PluginService::GetInstance()->Init();
19 content::PluginService::GetInstance()->DisablePluginsDiscoveryForTesting();
20 } 19 }
21 20
22 BrowserWindow* PrintPreviewTest::CreateBrowserWindow() { 21 BrowserWindow* PrintPreviewTest::CreateBrowserWindow() {
23 return new DialogTestBrowserWindow; 22 return new DialogTestBrowserWindow;
24 } 23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698