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

Issue 2812113004: Write last_modified date to Content Settings in the PrefProvider (Closed)

Created:
3 years, 8 months ago by dullweber
Modified:
3 years, 7 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, grt+watch_chromium.org, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org, timvolodine, vakh+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Write last_modified date to Content Settings in the PrefProvider Introduce a last_modified timestamp for content settings stored inside the PrefProvider. This timestamp will enable deleting content-settings by a selected time range from the clear browsing data dialog. The timestamp will only be recorded if the tabs-in-cbd flag is activated because otherwise there would be no way to delete these history-like entries. BUG=681523 Review-Url: https://codereview.chromium.org/2812113004 Cr-Commit-Position: refs/heads/master@{#468950} Committed: https://chromium.googlesource.com/chromium/src/+/39d6d5f89a382f3f6f23ae80a9c9c87c2f184371

Patch Set 1 #

Patch Set 2 : Add tests #

Patch Set 3 : Fix Android compilation #

Total comments: 19

Patch Set 4 : fix comments #

Total comments: 2

Patch Set 5 : Remove base::Time from most content_settings api #

Patch Set 6 : fix ios #

Total comments: 37

Patch Set 7 : rebase #

Patch Set 8 : fix comments #

Total comments: 2

Patch Set 9 : Add support for content settings with resources #

Patch Set 10 : disabled plugin test for android #

Patch Set 11 : replace DeleteWebsiteSettingAfterDate with GetWebsiteSettingLastModified #

Total comments: 4

Patch Set 12 : minor fixes #

Total comments: 1

Patch Set 13 : mention last_modified in OriginIdentifierValueMap comment #

Patch Set 14 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+465 lines, -134 lines) Patch
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/chrome_feature_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/android/chrome_feature_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_counter_utils.cc View 1 2 3 3 chunks +2 lines, -9 lines 0 comments Download
M chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/content_settings/content_settings_internal_extension_provider.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/content_settings/content_settings_origin_identifier_value_map_unittest.cc View 1 2 3 4 6 chunks +76 lines, -8 lines 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 13 chunks +83 lines, -12 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map_factory.cc View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/content_settings/host_content_settings_map_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +62 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/content_settings/content_settings_store.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/permissions/permission_decision_auto_blocker_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate.cc View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/common/chrome_features.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_features.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M components/content_settings/core/browser/content_settings_origin_identifier_value_map.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +22 lines, -7 lines 0 comments Download
M components/content_settings/core/browser/content_settings_origin_identifier_value_map.cc View 1 2 3 4 5 6 7 4 chunks +30 lines, -4 lines 0 comments Download
M components/content_settings/core/browser/content_settings_policy_provider.cc View 1 2 3 4 3 chunks +7 lines, -6 lines 0 comments Download
M components/content_settings/core/browser/content_settings_pref.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +15 lines, -5 lines 0 comments Download
M components/content_settings/core/browser/content_settings_pref.cc View 1 2 3 4 5 6 7 8 9 10 17 chunks +74 lines, -35 lines 0 comments Download
M components/content_settings/core/browser/content_settings_pref_provider.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -1 line 0 comments Download
M components/content_settings/core/browser/content_settings_pref_provider.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +18 lines, -4 lines 0 comments Download
M components/content_settings/core/browser/cookie_settings_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.h View 1 2 3 4 3 chunks +14 lines, -5 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +19 lines, -12 lines 0 comments Download
M components/content_settings/core/test/content_settings_mock_provider.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing/password_protection/password_protection_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing/password_protection/password_protection_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M components/signin/core/browser/signin_header_helper_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/signin/ios/browser/account_consistency_service_unittest.mm View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/content_settings/host_content_settings_map_factory.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 80 (53 generated)
dullweber
Hi Martin, here is the CL to add a timestamp for content-settings. Please take a ...
3 years, 8 months ago (2017-04-13 15:10:56 UTC) #9
msramek
Thanks, this seems to work correctly. I added a number of suggestions, and one open ...
3 years, 8 months ago (2017-04-19 10:49:16 UTC) #15
dullweber
Thanks, I responded to your comments or fixed the issues. I think we should decide ...
3 years, 8 months ago (2017-04-19 15:02:47 UTC) #19
raymes
We end up polluting a lot of things with the base::Time here which I think ...
3 years, 8 months ago (2017-04-20 00:07:58 UTC) #22
raymes
https://codereview.chromium.org/2812113004/diff/40001/components/content_settings/core/browser/content_settings_pref.cc File components/content_settings/core/browser/content_settings_pref.cc (right): https://codereview.chromium.org/2812113004/diff/40001/components/content_settings/core/browser/content_settings_pref.cc#newcode245 components/content_settings/core/browser/content_settings_pref.cc:245: // Get last modified timestamp. On 2017/04/19 15:02:45, dullweber ...
3 years, 8 months ago (2017-04-20 00:10:13 UTC) #23
dullweber
On 2017/04/20 00:07:58, raymes wrote: > We end up polluting a lot of things with ...
3 years, 8 months ago (2017-04-20 13:42:37 UTC) #30
dullweber
https://codereview.chromium.org/2812113004/diff/60001/chrome/browser/content_settings/host_content_settings_map_factory.cc File chrome/browser/content_settings/host_content_settings_map_factory.cc (right): https://codereview.chromium.org/2812113004/diff/60001/chrome/browser/content_settings/host_content_settings_map_factory.cc#newcode85 chrome/browser/content_settings/host_content_settings_map_factory.cc:85: store_last_modified)); On 2017/04/20 00:07:57, raymes wrote: > Is it ...
3 years, 8 months ago (2017-04-20 15:23:35 UTC) #33
raymes
Thanks! A bunch of comment from a closer look. https://codereview.chromium.org/2812113004/diff/100001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc File chrome/browser/content_settings/content_settings_pref_provider_unittest.cc (right): https://codereview.chromium.org/2812113004/diff/100001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc#newcode117 chrome/browser/content_settings/content_settings_pref_provider_unittest.cc:117: ...
3 years, 8 months ago (2017-04-24 03:20:23 UTC) #34
dullweber
Thanks, I fixed most of the issues you mentioned but I have a question regarding ...
3 years, 8 months ago (2017-04-25 10:50:45 UTC) #37
raymes
Thanks! https://codereview.chromium.org/2812113004/diff/100001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc File chrome/browser/content_settings/content_settings_pref_provider_unittest.cc (right): https://codereview.chromium.org/2812113004/diff/100001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc#newcode610 chrome/browser/content_settings/content_settings_pref_provider_unittest.cc:610: PrefProvider provider(&prefs, false, /*store_last_modified=*/true); On 2017/04/25 10:50:44, dullweber ...
3 years, 8 months ago (2017-04-26 01:54:17 UTC) #40
dullweber
I added support for deletion with resource-identifier, thanks! https://codereview.chromium.org/2812113004/diff/100001/components/content_settings/core/browser/host_content_settings_map.cc File components/content_settings/core/browser/host_content_settings_map.cc (right): https://codereview.chromium.org/2812113004/diff/100001/components/content_settings/core/browser/host_content_settings_map.cc#newcode665 components/content_settings/core/browser/host_content_settings_map.cc:665: DCHECK(!SupportsResourceIdentifier(content_type)); ...
3 years, 8 months ago (2017-04-26 11:01:41 UTC) #41
dullweber
I started to implement the Site Settings option for CBD and noticed that the current ...
3 years, 8 months ago (2017-04-26 16:05:18 UTC) #52
raymes
On 2017/04/26 16:05:18, dullweber wrote: > I started to implement the Site Settings option for ...
3 years, 8 months ago (2017-04-27 06:42:05 UTC) #55
dullweber
On 2017/04/27 06:42:05, raymes wrote: > On 2017/04/26 16:05:18, dullweber wrote: > > I started ...
3 years, 8 months ago (2017-04-27 08:30:21 UTC) #56
raymes
lgtm Ah I see I was misunderstanding the code before. Thanks! https://codereview.chromium.org/2812113004/diff/200001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc File chrome/browser/content_settings/content_settings_pref_provider_unittest.cc (right): ...
3 years, 7 months ago (2017-04-28 02:27:00 UTC) #57
dullweber
Thanks! https://codereview.chromium.org/2812113004/diff/200001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc File chrome/browser/content_settings/content_settings_pref_provider_unittest.cc (right): https://codereview.chromium.org/2812113004/diff/200001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc#newcode638 chrome/browser/content_settings/content_settings_pref_provider_unittest.cc:638: // before |t|. On 2017/04/28 02:27:00, raymes wrote: ...
3 years, 7 months ago (2017-04-28 08:49:57 UTC) #61
dullweber
Hello, please review the following files with minor changes due to an api change in ...
3 years, 7 months ago (2017-04-28 09:02:26 UTC) #63
msarda
components/signin/ changes LGTM.
3 years, 7 months ago (2017-04-28 11:02:15 UTC) #64
droger
ios lgtm
3 years, 7 months ago (2017-04-28 12:40:27 UTC) #65
Reilly Grant (use Gerrit)
chrome/browser/extensions lgtm with a request for documentation https://codereview.chromium.org/2812113004/diff/220001/components/content_settings/core/browser/content_settings_origin_identifier_value_map.h File components/content_settings/core/browser/content_settings_origin_identifier_value_map.h (right): https://codereview.chromium.org/2812113004/diff/220001/components/content_settings/core/browser/content_settings_origin_identifier_value_map.h#newcode111 components/content_settings/core/browser/content_settings_origin_identifier_value_map.h:111: // of ...
3 years, 7 months ago (2017-04-28 15:57:20 UTC) #66
Jialiu Lin
components/safe_browsing/ LGTM
3 years, 7 months ago (2017-04-28 17:54:18 UTC) #67
palmer
chrome/browser/ssl LGTM
3 years, 7 months ago (2017-04-28 19:03:33 UTC) #68
msramek
LGTM. I only took a quick pass on content_settings/ now, since Raymes did a detailed ...
3 years, 7 months ago (2017-05-03 10:43:32 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2812113004/240001
3 years, 7 months ago (2017-05-03 10:45:48 UTC) #72
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/261236) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 7 months ago (2017-05-03 10:49:06 UTC) #74
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2812113004/260001
3 years, 7 months ago (2017-05-03 12:03:37 UTC) #77
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 12:54:38 UTC) #80
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/39d6d5f89a382f3f6f23ae80a9c9...

Powered by Google App Engine
This is Rietveld 408576698