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