| 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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 } | 433 } |
| 434 | 434 |
| 435 void TestingProfile::SetExtensionSpecialStoragePolicy( | 435 void TestingProfile::SetExtensionSpecialStoragePolicy( |
| 436 ExtensionSpecialStoragePolicy* extension_special_storage_policy) { | 436 ExtensionSpecialStoragePolicy* extension_special_storage_policy) { |
| 437 extension_special_storage_policy_ = extension_special_storage_policy; | 437 extension_special_storage_policy_ = extension_special_storage_policy; |
| 438 } | 438 } |
| 439 | 439 |
| 440 ExtensionSpecialStoragePolicy* | 440 ExtensionSpecialStoragePolicy* |
| 441 TestingProfile::GetExtensionSpecialStoragePolicy() { | 441 TestingProfile::GetExtensionSpecialStoragePolicy() { |
| 442 if (!extension_special_storage_policy_.get()) | 442 if (!extension_special_storage_policy_.get()) |
| 443 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(); | 443 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(NULL); |
| 444 return extension_special_storage_policy_.get(); | 444 return extension_special_storage_policy_.get(); |
| 445 } | 445 } |
| 446 | 446 |
| 447 SSLHostState* TestingProfile::GetSSLHostState() { | 447 SSLHostState* TestingProfile::GetSSLHostState() { |
| 448 return NULL; | 448 return NULL; |
| 449 } | 449 } |
| 450 | 450 |
| 451 net::TransportSecurityState* TestingProfile::GetTransportSecurityState() { | 451 net::TransportSecurityState* TestingProfile::GetTransportSecurityState() { |
| 452 return NULL; | 452 return NULL; |
| 453 } | 453 } |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 782 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
| 783 return GetExtensionSpecialStoragePolicy(); | 783 return GetExtensionSpecialStoragePolicy(); |
| 784 } | 784 } |
| 785 | 785 |
| 786 void TestingProfile::DestroyWebDataService() { | 786 void TestingProfile::DestroyWebDataService() { |
| 787 if (!web_data_service_.get()) | 787 if (!web_data_service_.get()) |
| 788 return; | 788 return; |
| 789 | 789 |
| 790 web_data_service_->Shutdown(); | 790 web_data_service_->Shutdown(); |
| 791 } | 791 } |
| OLD | NEW |