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

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

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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 "chrome/browser/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/common/pref_names.h" 8 #include "chrome/common/pref_names.h"
9 #include "content/public/browser/plugin_service.h" 9 #include "content/public/browser/plugin_service.h"
10 10
11 PrintPreviewTest::PrintPreviewTest() {} 11 PrintPreviewTest::PrintPreviewTest() {}
12 PrintPreviewTest::~PrintPreviewTest() {} 12 PrintPreviewTest::~PrintPreviewTest() {}
13 13
14 void PrintPreviewTest::SetUp() { 14 void PrintPreviewTest::SetUp() {
15 BrowserWithTestWindowTest::SetUp(); 15 BrowserWithTestWindowTest::SetUp();
16 16
17 // The PluginService will be destroyed at the end of the test (due to the 17 // The PluginService will be destroyed at the end of the test (due to the
18 // ShadowingAtExitManager in our base class). 18 // ShadowingAtExitManager in our base class).
19 content::PluginService::GetInstance()->SetPluginListForTesting( 19 content::PluginService::GetInstance()->SetPluginListForTesting(
20 &plugin_list_); 20 &plugin_list_);
21 21
22 profile()->GetPrefs()->SetBoolean(prefs::kPrintPreviewDisabled, false); 22 profile()->GetPrefs()->SetBoolean(prefs::kPrintPreviewDisabled, false);
23 } 23 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_dialog_cloud.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698