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/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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 } | 228 } |
229 | 229 |
230 ComponentUpdateService* TestingBrowserProcess::component_updater() { | 230 ComponentUpdateService* TestingBrowserProcess::component_updater() { |
231 return NULL; | 231 return NULL; |
232 } | 232 } |
233 | 233 |
234 CRLSetFetcher* TestingBrowserProcess::crl_set_fetcher() { | 234 CRLSetFetcher* TestingBrowserProcess::crl_set_fetcher() { |
235 return NULL; | 235 return NULL; |
236 } | 236 } |
237 | 237 |
238 AudioManager* TestingBrowserProcess::audio_manager() { | |
239 return NULL; | |
240 } | |
241 | |
242 void TestingBrowserProcess::SetLocalState(PrefService* local_state) { | 238 void TestingBrowserProcess::SetLocalState(PrefService* local_state) { |
243 if (!local_state && notification_ui_manager_.get()) | 239 if (!local_state && notification_ui_manager_.get()) |
244 notification_ui_manager_.reset(); // Used local_state_. | 240 notification_ui_manager_.reset(); // Used local_state_. |
245 local_state_ = local_state; | 241 local_state_ = local_state; |
246 } | 242 } |
247 | 243 |
248 void TestingBrowserProcess::SetGoogleURLTracker( | 244 void TestingBrowserProcess::SetGoogleURLTracker( |
249 GoogleURLTracker* google_url_tracker) { | 245 GoogleURLTracker* google_url_tracker) { |
250 google_url_tracker_.reset(google_url_tracker); | 246 google_url_tracker_.reset(google_url_tracker); |
251 } | 247 } |
252 | 248 |
253 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { | 249 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { |
254 io_thread_ = io_thread; | 250 io_thread_ = io_thread; |
255 } | 251 } |
256 | 252 |
257 void TestingBrowserProcess::SetBrowserPolicyConnector( | 253 void TestingBrowserProcess::SetBrowserPolicyConnector( |
258 policy::BrowserPolicyConnector* connector) { | 254 policy::BrowserPolicyConnector* connector) { |
259 browser_policy_connector_.reset(connector); | 255 browser_policy_connector_.reset(connector); |
260 } | 256 } |
261 | 257 |
262 void TestingBrowserProcess::SetSafeBrowsingService( | 258 void TestingBrowserProcess::SetSafeBrowsingService( |
263 SafeBrowsingService* sb_service) { | 259 SafeBrowsingService* sb_service) { |
264 sb_service_ = sb_service; | 260 sb_service_ = sb_service; |
265 } | 261 } |
OLD | NEW |