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/string_util.h" | 8 #include "base/string_util.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 if (!media_file_system_registry_) | 317 if (!media_file_system_registry_) |
318 media_file_system_registry_.reset(new chrome::MediaFileSystemRegistry()); | 318 media_file_system_registry_.reset(new chrome::MediaFileSystemRegistry()); |
319 return media_file_system_registry_.get(); | 319 return media_file_system_registry_.get(); |
320 #endif | 320 #endif |
321 } | 321 } |
322 | 322 |
323 bool TestingBrowserProcess::created_local_state() const { | 323 bool TestingBrowserProcess::created_local_state() const { |
324 return (local_state_ != NULL); | 324 return (local_state_ != NULL); |
325 } | 325 } |
326 | 326 |
| 327 #if defined(ENABLE_WEBRTC) |
| 328 WebRtcLogUploader* TestingBrowserProcess::webrtc_log_uploader() { |
| 329 return NULL; |
| 330 } |
| 331 #endif |
| 332 |
327 void TestingBrowserProcess::SetBookmarkPromptController( | 333 void TestingBrowserProcess::SetBookmarkPromptController( |
328 BookmarkPromptController* controller) { | 334 BookmarkPromptController* controller) { |
329 #if !defined(OS_IOS) | 335 #if !defined(OS_IOS) |
330 bookmark_prompt_controller_.reset(controller); | 336 bookmark_prompt_controller_.reset(controller); |
331 #endif | 337 #endif |
332 } | 338 } |
333 | 339 |
334 void TestingBrowserProcess::SetSystemRequestContext( | 340 void TestingBrowserProcess::SetSystemRequestContext( |
335 net::URLRequestContextGetter* context_getter) { | 341 net::URLRequestContextGetter* context_getter) { |
336 system_request_context_ = context_getter; | 342 system_request_context_ = context_getter; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 #endif | 379 #endif |
374 } | 380 } |
375 | 381 |
376 void TestingBrowserProcess::SetSafeBrowsingService( | 382 void TestingBrowserProcess::SetSafeBrowsingService( |
377 SafeBrowsingService* sb_service) { | 383 SafeBrowsingService* sb_service) { |
378 #if !defined(OS_IOS) | 384 #if !defined(OS_IOS) |
379 NOTIMPLEMENTED(); | 385 NOTIMPLEMENTED(); |
380 sb_service_ = sb_service; | 386 sb_service_ = sb_service; |
381 #endif | 387 #endif |
382 } | 388 } |
OLD | NEW |