Chromium Code Reviews| 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..50e23751f53a247cfd3f9fd62f5fe14ef16c509a 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(); |
|
awong
2013/08/16 17:53:16
scoped_ptr<TestingProfile> otr_profile(otr_profile
Andrew T Wilson (Slow)
2013/08/19 12:15:56
Done.
|
| + profile->SetOffTheRecordProfile(otr_profile.PassAs<Profile>()); |
| PrefProvider pref_content_settings_provider(regular_prefs, false); |
| PrefProvider pref_content_settings_provider_incognito(otr_prefs, true); |