Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Unified Diff: chrome/browser/chromeos/login/supervised/supervised_user_test_base.cc

Issue 445353004: GetProfileByUser deprecated and renamed to GetProfileByUserUnsafe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));

Powered by Google App Engine
This is Rietveld 408576698