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 10 matching lines...) Expand all Loading... |
21 #include "chrome/browser/chrome_notification_types.h" | 21 #include "chrome/browser/chrome_notification_types.h" |
22 #include "chrome/browser/content_settings/host_content_settings_map.h" | 22 #include "chrome/browser/content_settings/host_content_settings_map.h" |
23 #include "chrome/browser/extensions/extension_service.h" | 23 #include "chrome/browser/extensions/extension_service.h" |
24 #include "chrome/browser/extensions/extension_special_storage_policy.h" | 24 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
25 #include "chrome/browser/extensions/extension_system_factory.h" | 25 #include "chrome/browser/extensions/extension_system_factory.h" |
26 #include "chrome/browser/extensions/test_extension_system.h" | 26 #include "chrome/browser/extensions/test_extension_system.h" |
27 #include "chrome/browser/favicon/favicon_service.h" | 27 #include "chrome/browser/favicon/favicon_service.h" |
28 #include "chrome/browser/favicon/favicon_service_factory.h" | 28 #include "chrome/browser/favicon/favicon_service_factory.h" |
29 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" | 29 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" |
30 #include "chrome/browser/geolocation/chrome_geolocation_permission_context_facto
ry.h" | 30 #include "chrome/browser/geolocation/chrome_geolocation_permission_context_facto
ry.h" |
| 31 #include "chrome/browser/guest_view/guest_view_manager.h" |
31 #include "chrome/browser/history/history_backend.h" | 32 #include "chrome/browser/history/history_backend.h" |
32 #include "chrome/browser/history/history_db_task.h" | 33 #include "chrome/browser/history/history_db_task.h" |
33 #include "chrome/browser/history/history_service.h" | 34 #include "chrome/browser/history/history_service.h" |
34 #include "chrome/browser/history/history_service_factory.h" | 35 #include "chrome/browser/history/history_service_factory.h" |
35 #include "chrome/browser/history/top_sites.h" | 36 #include "chrome/browser/history/top_sites.h" |
36 #include "chrome/browser/history/web_history_service_factory.h" | 37 #include "chrome/browser/history/web_history_service_factory.h" |
37 #include "chrome/browser/net/pref_proxy_config_tracker.h" | 38 #include "chrome/browser/net/pref_proxy_config_tracker.h" |
38 #include "chrome/browser/net/proxy_service_factory.h" | 39 #include "chrome/browser/net/proxy_service_factory.h" |
39 #include "chrome/browser/notifications/desktop_notification_service.h" | 40 #include "chrome/browser/notifications/desktop_notification_service.h" |
40 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 41 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 #endif | 821 #endif |
821 } | 822 } |
822 return host_content_settings_map_.get(); | 823 return host_content_settings_map_.get(); |
823 } | 824 } |
824 | 825 |
825 content::GeolocationPermissionContext* | 826 content::GeolocationPermissionContext* |
826 TestingProfile::GetGeolocationPermissionContext() { | 827 TestingProfile::GetGeolocationPermissionContext() { |
827 return ChromeGeolocationPermissionContextFactory::GetForProfile(this); | 828 return ChromeGeolocationPermissionContextFactory::GetForProfile(this); |
828 } | 829 } |
829 | 830 |
| 831 content::BrowserPluginGuestManagerDelegate* |
| 832 TestingProfile::GetGuestManagerDelegate() { |
| 833 return GuestViewManager::FromBrowserContext(this); |
| 834 } |
| 835 |
830 std::wstring TestingProfile::GetName() { | 836 std::wstring TestingProfile::GetName() { |
831 return std::wstring(); | 837 return std::wstring(); |
832 } | 838 } |
833 | 839 |
834 std::wstring TestingProfile::GetID() { | 840 std::wstring TestingProfile::GetID() { |
835 return id_; | 841 return id_; |
836 } | 842 } |
837 | 843 |
838 void TestingProfile::SetID(const std::wstring& id) { | 844 void TestingProfile::SetID(const std::wstring& id) { |
839 id_ = id; | 845 id_ = id; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 path_, | 978 path_, |
973 delegate_, | 979 delegate_, |
974 extension_policy_, | 980 extension_policy_, |
975 pref_service_.Pass(), | 981 pref_service_.Pass(), |
976 incognito_, | 982 incognito_, |
977 guest_session_, | 983 guest_session_, |
978 managed_user_id_, | 984 managed_user_id_, |
979 policy_service_.Pass(), | 985 policy_service_.Pass(), |
980 testing_factories_)); | 986 testing_factories_)); |
981 } | 987 } |
OLD | NEW |