| 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/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "base/time/default_clock.h" | 8 #include "base/time/default_clock.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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 BrowserProcessPlatformPart* TestingBrowserProcess::platform_part() { | 214 BrowserProcessPlatformPart* TestingBrowserProcess::platform_part() { |
| 215 return platform_part_.get(); | 215 return platform_part_.get(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 extensions::EventRouterForwarder* | 218 extensions::EventRouterForwarder* |
| 219 TestingBrowserProcess::extension_event_router_forwarder() { | 219 TestingBrowserProcess::extension_event_router_forwarder() { |
| 220 return nullptr; | 220 return nullptr; |
| 221 } | 221 } |
| 222 | 222 |
| 223 NotificationUIManager* TestingBrowserProcess::notification_ui_manager() { | 223 NotificationUIManager* TestingBrowserProcess::notification_ui_manager() { |
| 224 #if defined(ENABLE_NOTIFICATIONS) && !defined(OS_ANDROID) | 224 #if !defined(OS_ANDROID) |
| 225 if (!notification_ui_manager_.get()) | 225 if (!notification_ui_manager_.get()) |
| 226 notification_ui_manager_.reset(NotificationUIManager::Create()); | 226 notification_ui_manager_.reset(NotificationUIManager::Create()); |
| 227 return notification_ui_manager_.get(); | 227 return notification_ui_manager_.get(); |
| 228 #else | 228 #else |
| 229 NOTIMPLEMENTED(); | 229 NOTIMPLEMENTED(); |
| 230 return nullptr; | 230 return nullptr; |
| 231 #endif | 231 #endif |
| 232 } | 232 } |
| 233 | 233 |
| 234 NotificationPlatformBridge* | 234 NotificationPlatformBridge* |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 | 456 |
| 457 /////////////////////////////////////////////////////////////////////////////// | 457 /////////////////////////////////////////////////////////////////////////////// |
| 458 | 458 |
| 459 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { | 459 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { |
| 460 TestingBrowserProcess::CreateInstance(); | 460 TestingBrowserProcess::CreateInstance(); |
| 461 } | 461 } |
| 462 | 462 |
| 463 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { | 463 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { |
| 464 TestingBrowserProcess::DeleteInstance(); | 464 TestingBrowserProcess::DeleteInstance(); |
| 465 } | 465 } |
| OLD | NEW |