| 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_profile.h" | 5 #include "chrome/test/base/testing_profile.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 TestingProfile::GetExtensionSpecialStoragePolicy() { | 453 TestingProfile::GetExtensionSpecialStoragePolicy() { |
| 454 if (!extension_special_storage_policy_.get()) | 454 if (!extension_special_storage_policy_.get()) |
| 455 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(NULL); | 455 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(NULL); |
| 456 return extension_special_storage_policy_.get(); | 456 return extension_special_storage_policy_.get(); |
| 457 } | 457 } |
| 458 | 458 |
| 459 SSLHostState* TestingProfile::GetSSLHostState() { | 459 SSLHostState* TestingProfile::GetSSLHostState() { |
| 460 return NULL; | 460 return NULL; |
| 461 } | 461 } |
| 462 | 462 |
| 463 net::TransportSecurityState* TestingProfile::GetTransportSecurityState() { | |
| 464 return NULL; | |
| 465 } | |
| 466 | |
| 467 FaviconService* TestingProfile::GetFaviconService(ServiceAccessType access) { | 463 FaviconService* TestingProfile::GetFaviconService(ServiceAccessType access) { |
| 468 return favicon_service_.get(); | 464 return favicon_service_.get(); |
| 469 } | 465 } |
| 470 | 466 |
| 471 HistoryService* TestingProfile::GetHistoryService(ServiceAccessType access) { | 467 HistoryService* TestingProfile::GetHistoryService(ServiceAccessType access) { |
| 472 return history_service_.get(); | 468 return history_service_.get(); |
| 473 } | 469 } |
| 474 | 470 |
| 475 HistoryService* TestingProfile::GetHistoryServiceWithoutCreating() { | 471 HistoryService* TestingProfile::GetHistoryServiceWithoutCreating() { |
| 476 return history_service_.get(); | 472 return history_service_.get(); |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 ChromeDownloadManagerDelegate* delegate) { | 782 ChromeDownloadManagerDelegate* delegate) { |
| 787 // Specially marked so errors from use will occur near to the site | 783 // Specially marked so errors from use will occur near to the site |
| 788 // of the error. | 784 // of the error. |
| 789 NOTIMPLEMENTED(); | 785 NOTIMPLEMENTED(); |
| 790 } | 786 } |
| 791 | 787 |
| 792 chrome_browser_net::Predictor* TestingProfile::GetNetworkPredictor() { | 788 chrome_browser_net::Predictor* TestingProfile::GetNetworkPredictor() { |
| 793 return NULL; | 789 return NULL; |
| 794 } | 790 } |
| 795 | 791 |
| 792 void TestingProfile::DeleteTransportSecurityStateSince(base::Time time) { |
| 793 NOTIMPLEMENTED(); |
| 794 } |
| 795 |
| 796 PrefService* TestingProfile::GetOffTheRecordPrefs() { | 796 PrefService* TestingProfile::GetOffTheRecordPrefs() { |
| 797 return NULL; | 797 return NULL; |
| 798 } | 798 } |
| 799 | 799 |
| 800 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 800 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
| 801 return GetExtensionSpecialStoragePolicy(); | 801 return GetExtensionSpecialStoragePolicy(); |
| 802 } | 802 } |
| 803 | 803 |
| 804 void TestingProfile::DestroyWebDataService() { | 804 void TestingProfile::DestroyWebDataService() { |
| 805 if (!web_data_service_.get()) | 805 if (!web_data_service_.get()) |
| 806 return; | 806 return; |
| 807 | 807 |
| 808 web_data_service_->Shutdown(); | 808 web_data_service_->Shutdown(); |
| 809 } | 809 } |
| OLD | NEW |