| 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 <utility> | 7 #include <utility> |
| 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 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 } | 965 } |
| 966 | 966 |
| 967 content::SSLHostStateDelegate* TestingProfile::GetSSLHostStateDelegate() { | 967 content::SSLHostStateDelegate* TestingProfile::GetSSLHostStateDelegate() { |
| 968 return NULL; | 968 return NULL; |
| 969 } | 969 } |
| 970 | 970 |
| 971 content::PermissionManager* TestingProfile::GetPermissionManager() { | 971 content::PermissionManager* TestingProfile::GetPermissionManager() { |
| 972 return NULL; | 972 return NULL; |
| 973 } | 973 } |
| 974 | 974 |
| 975 content::BackgroundFetchClient* TestingProfileImpl::GetBackgroundFetchClient() { |
| 976 return nullptr; |
| 977 } |
| 978 |
| 975 content::BackgroundSyncController* | 979 content::BackgroundSyncController* |
| 976 TestingProfile::GetBackgroundSyncController() { | 980 TestingProfile::GetBackgroundSyncController() { |
| 977 return nullptr; | 981 return nullptr; |
| 978 } | 982 } |
| 979 | 983 |
| 980 net::URLRequestContextGetter* TestingProfile::CreateRequestContext( | 984 net::URLRequestContextGetter* TestingProfile::CreateRequestContext( |
| 981 content::ProtocolHandlerMap* protocol_handlers, | 985 content::ProtocolHandlerMap* protocol_handlers, |
| 982 content::URLRequestInterceptorScopedVector request_interceptors) { | 986 content::URLRequestInterceptorScopedVector request_interceptors) { |
| 983 return new net::TestURLRequestContextGetter( | 987 return new net::TestURLRequestContextGetter( |
| 984 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); | 988 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1093 // Note: Owned by |original_profile|. | 1097 // Note: Owned by |original_profile|. |
| 1094 return new TestingProfile(path_, delegate_, | 1098 return new TestingProfile(path_, delegate_, |
| 1095 #if BUILDFLAG(ENABLE_EXTENSIONS) | 1099 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 1096 extension_policy_, | 1100 extension_policy_, |
| 1097 #endif | 1101 #endif |
| 1098 std::move(pref_service_), original_profile, | 1102 std::move(pref_service_), original_profile, |
| 1099 guest_session_, supervised_user_id_, | 1103 guest_session_, supervised_user_id_, |
| 1100 std::move(policy_service_), testing_factories_, | 1104 std::move(policy_service_), testing_factories_, |
| 1101 profile_name_); | 1105 profile_name_); |
| 1102 } | 1106 } |
| OLD | NEW |