Index: chrome/browser/chromeos/login/supervised/supervised_user_test_base.cc |
diff --git a/chrome/browser/chromeos/login/supervised/supervised_user_test_base.cc b/chrome/browser/chromeos/login/supervised/supervised_user_test_base.cc |
index c66d356d0e82cbc54816b030bbae73cf243230f4..fa0fc964a34c95ab8023b1822792346d7826a63c 100644 |
--- a/chrome/browser/chromeos/login/supervised/supervised_user_test_base.cc |
+++ b/chrome/browser/chromeos/login/supervised/supervised_user_test_base.cc |
@@ -366,7 +366,7 @@ void SupervisedUserTestBase::SigninAsSupervisedUser( |
LoginUser(user->email()); |
if (check_homedir_calls) |
::testing::Mock::VerifyAndClearExpectations(mock_homedir_methods_); |
- Profile* profile = ProfileHelper::Get()->GetProfileByUser(user); |
+ Profile* profile = ProfileHelper::Get()->GetProfileByUserUnsafe(user); |
shared_settings_adapter_.reset( |
new SupervisedUsersSharedSettingsSyncTestAdapter(profile)); |
@@ -383,7 +383,7 @@ void SupervisedUserTestBase::SigninAsManager(int user_index) { |
const user_manager::User* user = |
UserManager::Get()->GetUsers().at(user_index); |
LoginUser(user->email()); |
- Profile* profile = ProfileHelper::Get()->GetProfileByUser(user); |
+ Profile* profile = ProfileHelper::Get()->GetProfileByUserUnsafe(user); |
shared_settings_adapter_.reset( |
new SupervisedUsersSharedSettingsSyncTestAdapter(profile)); |
supervised_users_adapter_.reset(new SupervisedUsersSyncTestAdapter(profile)); |