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_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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 return NULL; | 674 return NULL; |
675 } | 675 } |
676 | 676 |
677 net::URLRequestContextGetter* TestingProfile::GetRequestContextForIsolatedApp( | 677 net::URLRequestContextGetter* TestingProfile::GetRequestContextForIsolatedApp( |
678 const std::string& app_id) { | 678 const std::string& app_id) { |
679 // We don't test isolated app storage here yet, so returning the same dummy | 679 // We don't test isolated app storage here yet, so returning the same dummy |
680 // context is sufficient for now. | 680 // context is sufficient for now. |
681 return GetRequestContext(); | 681 return GetRequestContext(); |
682 } | 682 } |
683 | 683 |
684 const content::ResourceContext& TestingProfile::GetResourceContext() { | 684 content::ResourceContext* TestingProfile::GetResourceContext() { |
685 return *content::MockResourceContext::GetInstance(); | 685 return content::MockResourceContext::GetInstance(); |
686 } | 686 } |
687 | 687 |
688 HostContentSettingsMap* TestingProfile::GetHostContentSettingsMap() { | 688 HostContentSettingsMap* TestingProfile::GetHostContentSettingsMap() { |
689 if (!host_content_settings_map_.get()) { | 689 if (!host_content_settings_map_.get()) { |
690 host_content_settings_map_ = new HostContentSettingsMap( | 690 host_content_settings_map_ = new HostContentSettingsMap( |
691 GetPrefs(), GetExtensionService(), false); | 691 GetPrefs(), GetExtensionService(), false); |
692 } | 692 } |
693 return host_content_settings_map_.get(); | 693 return host_content_settings_map_.get(); |
694 } | 694 } |
695 | 695 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 829 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
830 return GetExtensionSpecialStoragePolicy(); | 830 return GetExtensionSpecialStoragePolicy(); |
831 } | 831 } |
832 | 832 |
833 void TestingProfile::DestroyWebDataService() { | 833 void TestingProfile::DestroyWebDataService() { |
834 if (!web_data_service_.get()) | 834 if (!web_data_service_.get()) |
835 return; | 835 return; |
836 | 836 |
837 web_data_service_->Shutdown(); | 837 web_data_service_->Shutdown(); |
838 } | 838 } |
OLD | NEW |