Index: chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc |
diff --git a/chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc b/chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc |
index 27b794bcc51cb8495c2ba699d66af752131da6a3..f2b4880fa4e3c686d09eab4d8dddef52e09fd7d7 100644 |
--- a/chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc |
+++ b/chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc |
@@ -62,7 +62,7 @@ class AccountsOptionsTest : public LoginManagerTest { |
protected: |
void CheckAccountsUI(const user_manager::User* user, bool is_owner) { |
- Profile* profile = ProfileHelper::Get()->GetProfileByUser(user); |
+ Profile* profile = ProfileHelper::Get()->GetProfileByUserUnsafe(user); |
profile->GetPrefs()->SetString(prefs::kGoogleServicesUsername, |
user->email()); |