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

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

Issue 2812113004: Write last_modified date to Content Settings in the PrefProvider (Closed)
Patch Set: rebase Created 3 years, 8 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/host_content_settings_map_factory.cc
diff --git a/chrome/browser/content_settings/host_content_settings_map_factory.cc b/chrome/browser/content_settings/host_content_settings_map_factory.cc
index 1d0547c23e64dba326b52ae59f19117eccfd3441..c1a9a79d48e4064f181e7515d37a71b5934cba60 100644
--- a/chrome/browser/content_settings/host_content_settings_map_factory.cc
+++ b/chrome/browser/content_settings/host_content_settings_map_factory.cc
@@ -6,9 +6,11 @@
#include <utility>
+#include "base/feature_list.h"
#include "chrome/browser/prefs/pref_service_syncable_util.h"
#include "chrome/browser/profiles/off_the_record_profile_impl.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/common/chrome_features.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/sync_preferences/pref_service_syncable.h"
@@ -74,10 +76,13 @@ scoped_refptr<RefcountedKeyedService>
GetForProfile(profile->GetOriginalProfile());
}
+ bool store_last_modified = base::FeatureList::IsEnabled(features::kTabsInCbd);
+
scoped_refptr<HostContentSettingsMap> settings_map(new HostContentSettingsMap(
profile->GetPrefs(),
profile->GetProfileType() == Profile::INCOGNITO_PROFILE,
- profile->GetProfileType() == Profile::GUEST_PROFILE));
+ profile->GetProfileType() == Profile::GUEST_PROFILE,
+ store_last_modified));
sync_preferences::PrefServiceSyncable* pref_service =
PrefServiceSyncableFromProfile(profile);

Powered by Google App Engine
This is Rietveld 408576698