Index: chrome/browser/content_settings/content_settings_pref_provider_unittest.cc |
diff --git a/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc b/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc |
index b1c8a62df8e24f7ec9d6565eca1c578a677f733b..3646541411cc2d3a9532fa3b078a657be1f00964 100644 |
--- a/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc |
+++ b/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc |
@@ -154,11 +154,10 @@ TEST_F(PrefProviderTest, Incognito) { |
scoped_ptr<TestingProfile> profile = profile_builder.Build(); |
TestingProfile::Builder otr_profile_builder; |
+ otr_profile_builder.SetIncognito(); |
otr_profile_builder.SetPrefService(make_scoped_ptr(otr_prefs)); |
- TestingProfile* otr_profile = otr_profile_builder.Build().release(); |
- |
- otr_profile->set_incognito(true); |
- profile->SetOffTheRecordProfile(otr_profile); |
+ scoped_ptr<TestingProfile> otr_profile(otr_profile_builder.Build()); |
+ profile->SetOffTheRecordProfile(otr_profile.PassAs<Profile>()); |
PrefProvider pref_content_settings_provider(regular_prefs, false); |
PrefProvider pref_content_settings_provider_incognito(otr_prefs, true); |