Index: chrome/browser/content_exceptions_table_model_unittest.cc |
diff --git a/chrome/browser/content_exceptions_table_model_unittest.cc b/chrome/browser/content_exceptions_table_model_unittest.cc |
index 3c3d26dd43f3f836276807a6dee40a2219c4d06b..8ba4b58ce79db3ac7125fe69120e3594865f9f1b 100644 |
--- a/chrome/browser/content_exceptions_table_model_unittest.cc |
+++ b/chrome/browser/content_exceptions_table_model_unittest.cc |
@@ -21,12 +21,11 @@ class ContentExceptionsTableModelTest : public testing::Test { |
TEST_F(ContentExceptionsTableModelTest, Incognito) { |
TestingProfile profile; |
- TestingProfile* otr_profile = new TestingProfile(); |
- otr_profile->set_off_the_record(true); |
+ TestingProfile otr_profile; |
+ otr_profile.set_off_the_record(true); |
ContentExceptionsTableModel model(profile.GetHostContentSettingsMap(), |
- otr_profile->GetHostContentSettingsMap(), |
+ otr_profile.GetHostContentSettingsMap(), |
CONTENT_SETTINGS_TYPE_COOKIES); |
- delete otr_profile; |
model.AddException(ContentSettingsPattern("example.com"), |
CONTENT_SETTING_BLOCK, true); |
} |