OLD | NEW |
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/test/base/testing_browser_process.h" | 5 #include "chrome/test/base/testing_browser_process.h" |
6 | 6 |
7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/time/default_tick_clock.h" | 9 #include "base/time/default_tick_clock.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 unsigned int TestingBrowserProcess::ReleaseModule() { | 259 unsigned int TestingBrowserProcess::ReleaseModule() { |
260 DCHECK_GT(module_ref_count_, 0U); | 260 DCHECK_GT(module_ref_count_, 0U); |
261 return --module_ref_count_; | 261 return --module_ref_count_; |
262 } | 262 } |
263 | 263 |
264 bool TestingBrowserProcess::IsShuttingDown() { | 264 bool TestingBrowserProcess::IsShuttingDown() { |
265 return false; | 265 return false; |
266 } | 266 } |
267 | 267 |
268 printing::PrintJobManager* TestingBrowserProcess::print_job_manager() { | 268 printing::PrintJobManager* TestingBrowserProcess::print_job_manager() { |
269 #if defined(ENABLE_FULL_PRINTING) | 269 #if defined(ENABLE_PRINTING) |
270 if (!print_job_manager_.get()) | 270 if (!print_job_manager_.get()) |
271 print_job_manager_.reset(new printing::PrintJobManager()); | 271 print_job_manager_.reset(new printing::PrintJobManager()); |
272 return print_job_manager_.get(); | 272 return print_job_manager_.get(); |
273 #else | 273 #else |
274 NOTIMPLEMENTED(); | 274 NOTIMPLEMENTED(); |
275 return NULL; | 275 return NULL; |
276 #endif | 276 #endif |
277 } | 277 } |
278 | 278 |
279 printing::PrintPreviewDialogController* | 279 printing::PrintPreviewDialogController* |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 | 438 |
439 /////////////////////////////////////////////////////////////////////////////// | 439 /////////////////////////////////////////////////////////////////////////////// |
440 | 440 |
441 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { | 441 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { |
442 TestingBrowserProcess::CreateInstance(); | 442 TestingBrowserProcess::CreateInstance(); |
443 } | 443 } |
444 | 444 |
445 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { | 445 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { |
446 TestingBrowserProcess::DeleteInstance(); | 446 TestingBrowserProcess::DeleteInstance(); |
447 } | 447 } |
OLD | NEW |