Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5630)

Unified Diff: chrome/browser/content_exceptions_table_model_unittest.cc

Issue 6410022: Add content_settings::PrefProvider to HostContentSettingsMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Worked on comments Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698