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

Unified Diff: chrome/browser/ui/webui/options/chromeos/shared_options_browsertest.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
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/chromeos/shared_options_browsertest.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/shared_options_browsertest.cc b/chrome/browser/ui/webui/options/chromeos/shared_options_browsertest.cc
index a8255db0c2d97759c741767ff2d9d8417552fc4e..88dd9834314d9cd1351e477558711db62ba62927 100644
--- a/chrome/browser/ui/webui/options/chromeos/shared_options_browsertest.cc
+++ b/chrome/browser/ui/webui/options/chromeos/shared_options_browsertest.cc
@@ -131,7 +131,7 @@ class SharedOptionsTest : public LoginManagerTest {
// Creates a browser and navigates to the Settings page.
Browser* CreateBrowserForUser(const user_manager::User* user) {
- Profile* profile = ProfileHelper::Get()->GetProfileByUser(user);
+ Profile* profile = ProfileHelper::Get()->GetProfileByUserUnsafe(user);
profile->GetPrefs()->SetString(prefs::kGoogleServicesUsername,
user->email());
@@ -309,9 +309,9 @@ IN_PROC_BROWSER_TEST_F(SharedOptionsTest, ScreenLockPreferencePrimary) {
const user_manager::User* user2 = manager->FindUser(kTestNonOwner);
PrefService* prefs1 =
- ProfileHelper::Get()->GetProfileByUser(user1)->GetPrefs();
+ ProfileHelper::Get()->GetProfileByUserUnsafe(user1)->GetPrefs();
PrefService* prefs2 =
- ProfileHelper::Get()->GetProfileByUser(user2)->GetPrefs();
+ ProfileHelper::Get()->GetProfileByUserUnsafe(user2)->GetPrefs();
// Set both users' preference to false, then change the secondary user's to
// true. We'll do the opposite in the next test. Doesn't provide 100% coverage
@@ -380,9 +380,9 @@ IN_PROC_BROWSER_TEST_F(SharedOptionsTest, ScreenLockPreferenceSecondary) {
const user_manager::User* user2 = manager->FindUser(kTestNonOwner);
PrefService* prefs1 =
- ProfileHelper::Get()->GetProfileByUser(user1)->GetPrefs();
+ ProfileHelper::Get()->GetProfileByUserUnsafe(user1)->GetPrefs();
PrefService* prefs2 =
- ProfileHelper::Get()->GetProfileByUser(user2)->GetPrefs();
+ ProfileHelper::Get()->GetProfileByUserUnsafe(user2)->GetPrefs();
// Set both users' preference to true, then change the secondary user's to
// false.
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698