Index: chrome/browser/chromeos/policy/device_local_account_browsertest.cc |
diff --git a/chrome/browser/chromeos/policy/device_local_account_browsertest.cc b/chrome/browser/chromeos/policy/device_local_account_browsertest.cc |
index b10af17f32501fe20140f003e253532a676a561b..976c27dc33ec840ed6b0d1b4b6d72fb67bb5749c 100644 |
--- a/chrome/browser/chromeos/policy/device_local_account_browsertest.cc |
+++ b/chrome/browser/chromeos/policy/device_local_account_browsertest.cc |
@@ -68,6 +68,7 @@ |
#include "chrome/browser/prefs/session_startup_pref.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_manager.h" |
+#include "chrome/browser/signin/signin_manager_factory.h" |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/browser_commands.h" |
#include "chrome/browser/ui/browser_finder.h" |
@@ -98,7 +99,7 @@ |
#include "components/policy/core/common/policy_namespace.h" |
#include "components/policy/core/common/policy_service.h" |
#include "components/policy/core/common/policy_switches.h" |
-#include "components/signin/core/common/signin_pref_names.h" |
+#include "components/signin/core/browser/signin_manager.h" |
#include "components/user_manager/user.h" |
#include "components/user_manager/user_manager.h" |
#include "components/user_manager/user_type.h" |
@@ -935,8 +936,8 @@ IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, StartSession) { |
// account. |
Profile* profile = GetProfileForTest(); |
ASSERT_TRUE(profile); |
- EXPECT_FALSE(profile->GetPrefs()->HasPrefPath( |
- prefs::kGoogleServicesUsername)); |
+ EXPECT_FALSE( |
+ SigninManagerFactory::GetForProfile(profile)->IsAuthenticated()); |
} |
IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, FullscreenDisallowed) { |