| Index: chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc
|
| diff --git a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc
|
| index 6ddccc6b1cf5d8249fc056885ba7468614dec873..4490749f4981e0b1baf60aa2ada96eb6e1040fd9 100644
|
| --- a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc
|
| +++ b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc
|
| @@ -99,13 +99,10 @@ class UserCloudPolicyManagerChromeOSTest : public testing::Test {
|
| 0,
|
| std::string(),
|
| factories);
|
| - signin_profile_ = profile_manager_->CreateTestingProfile(kSigninProfile);
|
| - signin_profile_->ForceIncognito(true);
|
| // Usually the signin Profile and the main Profile are separate, but since
|
| // the signin Profile is an OTR Profile then for this test it suffices to
|
| // attach it to the main Profile.
|
| - profile_->SetOffTheRecordProfile(scoped_ptr<Profile>(signin_profile_));
|
| - signin_profile_->SetOriginalProfile(profile_);
|
| + signin_profile_ = TestingProfile::Builder().BuildIncognito(profile_);
|
| ASSERT_EQ(signin_profile_, chromeos::ProfileHelper::GetSigninProfile());
|
|
|
| chrome::RegisterLocalState(prefs_.registry());
|
| @@ -156,7 +153,6 @@ class UserCloudPolicyManagerChromeOSTest : public testing::Test {
|
| }
|
| signin_profile_ = NULL;
|
| profile_ = NULL;
|
| - profile_manager_->DeleteTestingProfile(kSigninProfile);
|
| profile_manager_->DeleteTestingProfile(chrome::kInitialProfile);
|
| }
|
|
|
|
|