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/string_util.h" | 7 #include "base/string_util.h" |
8 #include "chrome/browser/notifications/notification_ui_manager.h" | 8 #include "chrome/browser/notifications/notification_ui_manager.h" |
9 #include "chrome/browser/policy/browser_policy_connector.h" | 9 #include "chrome/browser/policy/browser_policy_connector.h" |
10 #include "chrome/browser/policy/policy_service.h" | 10 #include "chrome/browser/policy/policy_service.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 #endif // defined(OS_CHROMEOS) | 127 #endif // defined(OS_CHROMEOS) |
128 | 128 |
129 ui::Clipboard* TestingBrowserProcess::clipboard() { | 129 ui::Clipboard* TestingBrowserProcess::clipboard() { |
130 if (!clipboard_.get()) { | 130 if (!clipboard_.get()) { |
131 // Note that we need a MessageLoop for the next call to work. | 131 // Note that we need a MessageLoop for the next call to work. |
132 clipboard_.reset(new ui::Clipboard); | 132 clipboard_.reset(new ui::Clipboard); |
133 } | 133 } |
134 return clipboard_.get(); | 134 return clipboard_.get(); |
135 } | 135 } |
136 | 136 |
137 ExtensionEventRouterForwarder* | 137 extensions::EventRouterForwarder* |
138 TestingBrowserProcess::extension_event_router_forwarder() { | 138 TestingBrowserProcess::extension_event_router_forwarder() { |
139 return NULL; | 139 return NULL; |
140 } | 140 } |
141 | 141 |
142 NotificationUIManager* TestingBrowserProcess::notification_ui_manager() { | 142 NotificationUIManager* TestingBrowserProcess::notification_ui_manager() { |
143 #if defined(ENABLE_NOTIFICATIONS) | 143 #if defined(ENABLE_NOTIFICATIONS) |
144 if (!notification_ui_manager_.get()) | 144 if (!notification_ui_manager_.get()) |
145 notification_ui_manager_.reset( | 145 notification_ui_manager_.reset( |
146 NotificationUIManager::Create(local_state())); | 146 NotificationUIManager::Create(local_state())); |
147 return notification_ui_manager_.get(); | 147 return notification_ui_manager_.get(); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 260 |
261 void TestingBrowserProcess::SetBrowserPolicyConnector( | 261 void TestingBrowserProcess::SetBrowserPolicyConnector( |
262 policy::BrowserPolicyConnector* connector) { | 262 policy::BrowserPolicyConnector* connector) { |
263 browser_policy_connector_.reset(connector); | 263 browser_policy_connector_.reset(connector); |
264 } | 264 } |
265 | 265 |
266 void TestingBrowserProcess::SetSafeBrowsingService( | 266 void TestingBrowserProcess::SetSafeBrowsingService( |
267 SafeBrowsingService* sb_service) { | 267 SafeBrowsingService* sb_service) { |
268 sb_service_ = sb_service; | 268 sb_service_ = sb_service; |
269 } | 269 } |
OLD | NEW |