| Index: chrome/browser/chromeos/login/kiosk_browsertest.cc
|
| diff --git a/chrome/browser/chromeos/login/kiosk_browsertest.cc b/chrome/browser/chromeos/login/kiosk_browsertest.cc
|
| index d6724216cd494c3838f946151435520509df14cf..c9dab8208d529e9cc60080a233e4d4609f03cae9 100644
|
| --- a/chrome/browser/chromeos/login/kiosk_browsertest.cc
|
| +++ b/chrome/browser/chromeos/login/kiosk_browsertest.cc
|
| @@ -40,6 +40,7 @@
|
| #include "chrome/browser/profiles/profile_impl.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| #include "chrome/browser/profiles/profiles_state.h"
|
| +#include "chrome/browser/signin/signin_manager_factory.h"
|
| #include "chrome/browser/ui/webui/chromeos/login/kiosk_app_menu_handler.h"
|
| #include "chrome/common/chrome_constants.h"
|
| #include "chrome/common/chrome_paths.h"
|
| @@ -49,7 +50,7 @@
|
| #include "chromeos/disks/disk_mount_manager.h"
|
| #include "chromeos/system/fake_statistics_provider.h"
|
| #include "chromeos/system/statistics_provider.h"
|
| -#include "components/signin/core/common/signin_pref_names.h"
|
| +#include "components/signin/core/browser/signin_manager.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/notification_observer.h"
|
| #include "content/public/browser/notification_registrar.h"
|
| @@ -713,8 +714,8 @@ IN_PROC_BROWSER_TEST_F(KioskTest, NotSignedInWithGAIAAccount) {
|
|
|
| Profile* app_profile = ProfileManager::GetPrimaryUserProfile();
|
| ASSERT_TRUE(app_profile);
|
| - EXPECT_FALSE(app_profile->GetPrefs()->HasPrefPath(
|
| - prefs::kGoogleServicesUsername));
|
| + EXPECT_FALSE(
|
| + SigninManagerFactory::GetForProfile(app_profile)->IsAuthenticated());
|
| }
|
|
|
| IN_PROC_BROWSER_TEST_F(KioskTest, PRE_LaunchAppNetworkDown) {
|
| @@ -1763,8 +1764,8 @@ IN_PROC_BROWSER_TEST_F(KioskEnterpriseTest, EnterpriseKioskApp) {
|
| // account.
|
| Profile* app_profile = ProfileManager::GetPrimaryUserProfile();
|
| ASSERT_TRUE(app_profile);
|
| - EXPECT_FALSE(app_profile->GetPrefs()->HasPrefPath(
|
| - prefs::kGoogleServicesUsername));
|
| + EXPECT_FALSE(
|
| + SigninManagerFactory::GetForProfile(app_profile)->IsAuthenticated());
|
|
|
| // Terminate the app.
|
| window->GetBaseWindow()->Close();
|
|
|