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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 | 960 |
961 content::PermissionManager* TestingProfile::GetPermissionManager() { | 961 content::PermissionManager* TestingProfile::GetPermissionManager() { |
962 return NULL; | 962 return NULL; |
963 } | 963 } |
964 | 964 |
965 content::BackgroundSyncController* | 965 content::BackgroundSyncController* |
966 TestingProfile::GetBackgroundSyncController() { | 966 TestingProfile::GetBackgroundSyncController() { |
967 return nullptr; | 967 return nullptr; |
968 } | 968 } |
969 | 969 |
| 970 content::ChooserPermissionManager* |
| 971 TestingProfile::GetChooserPermissionManager() { |
| 972 return nullptr; |
| 973 } |
| 974 |
970 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { | 975 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { |
971 return true; | 976 return true; |
972 } | 977 } |
973 | 978 |
974 bool TestingProfile::IsGuestSession() const { | 979 bool TestingProfile::IsGuestSession() const { |
975 return guest_session_; | 980 return guest_session_; |
976 } | 981 } |
977 | 982 |
978 Profile::ExitType TestingProfile::GetLastSessionExitType() { | 983 Profile::ExitType TestingProfile::GetLastSessionExitType() { |
979 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED; | 984 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 | 1054 |
1050 // Note: Owned by |original_profile|. | 1055 // Note: Owned by |original_profile|. |
1051 return new TestingProfile(path_, delegate_, | 1056 return new TestingProfile(path_, delegate_, |
1052 #if defined(ENABLE_EXTENSIONS) | 1057 #if defined(ENABLE_EXTENSIONS) |
1053 extension_policy_, | 1058 extension_policy_, |
1054 #endif | 1059 #endif |
1055 std::move(pref_service_), original_profile, | 1060 std::move(pref_service_), original_profile, |
1056 guest_session_, supervised_user_id_, | 1061 guest_session_, supervised_user_id_, |
1057 std::move(policy_service_), testing_factories_); | 1062 std::move(policy_service_), testing_factories_); |
1058 } | 1063 } |
OLD | NEW |