OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/google/google_url_tracker.h" | 8 #include "chrome/browser/google/google_url_tracker.h" |
9 #include "chrome/browser/notifications/notification_ui_manager.h" | 9 #include "chrome/browser/notifications/notification_ui_manager.h" |
10 #include "chrome/browser/policy/browser_policy_connector.h" | 10 #include "chrome/browser/policy/browser_policy_connector.h" |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 } | 233 } |
234 | 234 |
235 ComponentUpdateService* TestingBrowserProcess::component_updater() { | 235 ComponentUpdateService* TestingBrowserProcess::component_updater() { |
236 return NULL; | 236 return NULL; |
237 } | 237 } |
238 | 238 |
239 CRLSetFetcher* TestingBrowserProcess::crl_set_fetcher() { | 239 CRLSetFetcher* TestingBrowserProcess::crl_set_fetcher() { |
240 return NULL; | 240 return NULL; |
241 } | 241 } |
242 | 242 |
| 243 AudioManager* TestingBrowserProcess::audio_manager() { |
| 244 return NULL; |
| 245 } |
| 246 |
243 void TestingBrowserProcess::SetLocalState(PrefService* local_state) { | 247 void TestingBrowserProcess::SetLocalState(PrefService* local_state) { |
244 if (!local_state && notification_ui_manager_.get()) | 248 if (!local_state && notification_ui_manager_.get()) |
245 notification_ui_manager_.reset(); // Used local_state_. | 249 notification_ui_manager_.reset(); // Used local_state_. |
246 local_state_ = local_state; | 250 local_state_ = local_state; |
247 } | 251 } |
248 | 252 |
249 void TestingBrowserProcess::SetGoogleURLTracker( | 253 void TestingBrowserProcess::SetGoogleURLTracker( |
250 GoogleURLTracker* google_url_tracker) { | 254 GoogleURLTracker* google_url_tracker) { |
251 google_url_tracker_.reset(google_url_tracker); | 255 google_url_tracker_.reset(google_url_tracker); |
252 } | 256 } |
253 | 257 |
254 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { | 258 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { |
255 io_thread_ = io_thread; | 259 io_thread_ = io_thread; |
256 } | 260 } |
257 | 261 |
258 void TestingBrowserProcess::SetBrowserPolicyConnector( | 262 void TestingBrowserProcess::SetBrowserPolicyConnector( |
259 policy::BrowserPolicyConnector* connector) { | 263 policy::BrowserPolicyConnector* connector) { |
260 browser_policy_connector_.reset(connector); | 264 browser_policy_connector_.reset(connector); |
261 } | 265 } |
OLD | NEW |