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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 } | 434 } |
435 | 435 |
436 void TestingProfile::SetExtensionSpecialStoragePolicy( | 436 void TestingProfile::SetExtensionSpecialStoragePolicy( |
437 ExtensionSpecialStoragePolicy* extension_special_storage_policy) { | 437 ExtensionSpecialStoragePolicy* extension_special_storage_policy) { |
438 extension_special_storage_policy_ = extension_special_storage_policy; | 438 extension_special_storage_policy_ = extension_special_storage_policy; |
439 } | 439 } |
440 | 440 |
441 ExtensionSpecialStoragePolicy* | 441 ExtensionSpecialStoragePolicy* |
442 TestingProfile::GetExtensionSpecialStoragePolicy() { | 442 TestingProfile::GetExtensionSpecialStoragePolicy() { |
443 if (!extension_special_storage_policy_.get()) | 443 if (!extension_special_storage_policy_.get()) |
444 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(); | 444 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(NULL); |
445 return extension_special_storage_policy_.get(); | 445 return extension_special_storage_policy_.get(); |
446 } | 446 } |
447 | 447 |
448 SSLHostState* TestingProfile::GetSSLHostState() { | 448 SSLHostState* TestingProfile::GetSSLHostState() { |
449 return NULL; | 449 return NULL; |
450 } | 450 } |
451 | 451 |
452 net::TransportSecurityState* TestingProfile::GetTransportSecurityState() { | 452 net::TransportSecurityState* TestingProfile::GetTransportSecurityState() { |
453 return NULL; | 453 return NULL; |
454 } | 454 } |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 792 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
793 return GetExtensionSpecialStoragePolicy(); | 793 return GetExtensionSpecialStoragePolicy(); |
794 } | 794 } |
795 | 795 |
796 void TestingProfile::DestroyWebDataService() { | 796 void TestingProfile::DestroyWebDataService() { |
797 if (!web_data_service_.get()) | 797 if (!web_data_service_.get()) |
798 return; | 798 return; |
799 | 799 |
800 web_data_service_->Shutdown(); | 800 web_data_service_->Shutdown(); |
801 } | 801 } |
OLD | NEW |