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/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/background/background_mode_manager.h" | 10 #include "chrome/browser/background/background_mode_manager.h" |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 320 |
321 BookmarkPromptController* TestingBrowserProcess::bookmark_prompt_controller() { | 321 BookmarkPromptController* TestingBrowserProcess::bookmark_prompt_controller() { |
322 #if defined(OS_IOS) | 322 #if defined(OS_IOS) |
323 NOTIMPLEMENTED(); | 323 NOTIMPLEMENTED(); |
324 return NULL; | 324 return NULL; |
325 #else | 325 #else |
326 return bookmark_prompt_controller_.get(); | 326 return bookmark_prompt_controller_.get(); |
327 #endif | 327 #endif |
328 } | 328 } |
329 | 329 |
330 chrome::StorageMonitor* TestingBrowserProcess::storage_monitor() { | 330 StorageMonitor* TestingBrowserProcess::storage_monitor() { |
331 #if defined(OS_IOS) || defined(OS_ANDROID) | 331 #if defined(OS_IOS) || defined(OS_ANDROID) |
332 NOTIMPLEMENTED(); | 332 NOTIMPLEMENTED(); |
333 return NULL; | 333 return NULL; |
334 #else | 334 #else |
335 return storage_monitor_.get(); | 335 return storage_monitor_.get(); |
336 #endif | 336 #endif |
337 } | 337 } |
338 | 338 |
339 chrome::MediaFileSystemRegistry* | 339 MediaFileSystemRegistry* TestingBrowserProcess::media_file_system_registry() { |
340 TestingBrowserProcess::media_file_system_registry() { | |
341 #if defined(OS_IOS) || defined(OS_ANDROID) | 340 #if defined(OS_IOS) || defined(OS_ANDROID) |
342 NOTIMPLEMENTED(); | 341 NOTIMPLEMENTED(); |
343 return NULL; | 342 return NULL; |
344 #else | 343 #else |
345 if (!media_file_system_registry_) | 344 if (!media_file_system_registry_) |
346 media_file_system_registry_.reset(new chrome::MediaFileSystemRegistry()); | 345 media_file_system_registry_.reset(new MediaFileSystemRegistry()); |
347 return media_file_system_registry_.get(); | 346 return media_file_system_registry_.get(); |
348 #endif | 347 #endif |
349 } | 348 } |
350 | 349 |
351 bool TestingBrowserProcess::created_local_state() const { | 350 bool TestingBrowserProcess::created_local_state() const { |
352 return (local_state_ != NULL); | 351 return (local_state_ != NULL); |
353 } | 352 } |
354 | 353 |
355 #if defined(ENABLE_WEBRTC) | 354 #if defined(ENABLE_WEBRTC) |
356 WebRtcLogUploader* TestingBrowserProcess::webrtc_log_uploader() { | 355 WebRtcLogUploader* TestingBrowserProcess::webrtc_log_uploader() { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 | 408 |
410 void TestingBrowserProcess::SetSafeBrowsingService( | 409 void TestingBrowserProcess::SetSafeBrowsingService( |
411 SafeBrowsingService* sb_service) { | 410 SafeBrowsingService* sb_service) { |
412 #if !defined(OS_IOS) | 411 #if !defined(OS_IOS) |
413 NOTIMPLEMENTED(); | 412 NOTIMPLEMENTED(); |
414 sb_service_ = sb_service; | 413 sb_service_ = sb_service; |
415 #endif | 414 #endif |
416 } | 415 } |
417 | 416 |
418 void TestingBrowserProcess::SetStorageMonitor( | 417 void TestingBrowserProcess::SetStorageMonitor( |
419 scoped_ptr<chrome::StorageMonitor> storage_monitor) { | 418 scoped_ptr<StorageMonitor> storage_monitor) { |
420 #if !defined(OS_IOS) && !defined(OS_ANDROID) | 419 #if !defined(OS_IOS) && !defined(OS_ANDROID) |
421 storage_monitor_ = storage_monitor.Pass(); | 420 storage_monitor_ = storage_monitor.Pass(); |
422 #endif | 421 #endif |
423 } | 422 } |
OLD | NEW |