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

Unified Diff: chrome/browser/content_settings/content_settings_pref_provider_unittest.cc

Issue 2318223002: Remove EmptyRuleIterators with nullptrs. (Closed)
Patch Set: Created 4 years, 3 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_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 5ee41e7b3e8f73a2d0ee7beb1b2cfa5bc8cb051b..f6cacd2e4e31dfaece9f4c2b88d7c361b72a69d1 100644
--- a/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc
+++ b/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc
@@ -419,7 +419,7 @@ TEST_F(PrefProviderTest, IncognitoInheritsValueMap) {
{
std::unique_ptr<RuleIterator> it(normal_provider.GetRuleIterator(
CONTENT_SETTINGS_TYPE_COOKIES, std::string(), true));
- EXPECT_FALSE(it->HasNext());
+ EXPECT_FALSE(it);
}
// Create an incognito provider and set a setting.

Powered by Google App Engine
This is Rietveld 408576698