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

Unified Diff: chrome/browser/extensions/api/content_settings/content_settings_store.cc

Issue 2812113004: Write last_modified date to Content Settings in the PrefProvider (Closed)
Patch Set: fix comments 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/extensions/api/content_settings/content_settings_store.cc
diff --git a/chrome/browser/extensions/api/content_settings/content_settings_store.cc b/chrome/browser/extensions/api/content_settings/content_settings_store.cc
index 8bed231ad3a3496bb6daa3278711266b4f7f1aa1..32a551366b49dd604ef6b68f25376193a29c4236 100644
--- a/chrome/browser/extensions/api/content_settings/content_settings_store.cc
+++ b/chrome/browser/extensions/api/content_settings/content_settings_store.cc
@@ -109,8 +109,10 @@ void ContentSettingsStore::SetExtensionContentSetting(
if (setting == CONTENT_SETTING_DEFAULT) {
map->DeleteValue(primary_pattern, secondary_pattern, type, identifier);
} else {
+ // Do not set a timestamp for extension settings.
+ base::Time last_modified;
map->SetValue(primary_pattern, secondary_pattern, type, identifier,
- new base::Value(setting));
+ last_modified, new base::Value(setting));
}
}

Powered by Google App Engine
This is Rietveld 408576698