Index: chrome/browser/net/nss_context_chromeos_browsertest.cc |
diff --git a/chrome/browser/net/nss_context_chromeos_browsertest.cc b/chrome/browser/net/nss_context_chromeos_browsertest.cc |
index d8bfefa267b6e2a01938083f71fff48b96b8b0b8..d77c64fe4f052ec1b58d6461dc757bea72b2b57d 100644 |
--- a/chrome/browser/net/nss_context_chromeos_browsertest.cc |
+++ b/chrome/browser/net/nss_context_chromeos_browsertest.cc |
@@ -135,7 +135,7 @@ IN_PROC_BROWSER_TEST_F(NSSContextChromeOSBrowserTest, TwoUsers) { |
// Log in first user and get their DB. |
LoginUser(kTestUser1); |
- Profile* profile1 = chromeos::ProfileHelper::Get()->GetProfileByUser( |
+ Profile* profile1 = chromeos::ProfileHelper::Get()->GetProfileByUserUnsafe( |
user_manager->FindUser(kTestUser1)); |
ASSERT_TRUE(profile1); |
@@ -147,7 +147,7 @@ IN_PROC_BROWSER_TEST_F(NSSContextChromeOSBrowserTest, TwoUsers) { |
base::RunLoop().RunUntilIdle(); |
AddUser(kTestUser2); |
- Profile* profile2 = chromeos::ProfileHelper::Get()->GetProfileByUser( |
+ Profile* profile2 = chromeos::ProfileHelper::Get()->GetProfileByUserUnsafe( |
user_manager->FindUser(kTestUser2)); |
ASSERT_TRUE(profile2); |