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

Issue 2354843006: [Durable] Clear durable permission when clearing site data. (Closed)

Created:
4 years, 3 months ago by dmurph
Modified:
4 years, 2 months ago
Reviewers:
msramek, Mike West
CC:
benwells, chromium-reviews, markusheintz_, msramek+watch_chromium.org, raymes
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Durable] Clear durable permission when clearing site data. The Durable permission allows sites to gait preferential treatment during our auto-eviction process for all storage (indexeddb, local storage, cache storage, etc). If we're clearing all of this data per user request, we want to remove the permission, and then the site can ask for that permission again. BUG=629951 Committed: https://crrev.com/27ca374c96f1b58190e64520e2ae65d9e7a28ccc Cr-Commit-Position: refs/heads/master@{#421936}

Patch Set 1 #

Total comments: 7

Patch Set 2 : comments #

Patch Set 3 : fixed extension tests #

Total comments: 5

Patch Set 4 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -21 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 2 chunks +43 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/browsing_data/browsing_data_test.cc View 1 2 3 3 chunks +28 lines, -20 lines 0 comments Download

Messages

Total messages: 45 (26 generated)
dmurph
Hey Martin, can you PTAL at this change?
4 years, 3 months ago (2016-09-20 20:54:55 UTC) #2
msramek
Looks generally good, but I left some comments on the test. Can you remind me ...
4 years, 3 months ago (2016-09-21 13:46:11 UTC) #8
dmurph
We currently grant durable storage only if the user has a bookmark w/ the requesting ...
4 years, 3 months ago (2016-09-21 20:37:51 UTC) #9
dmurph
edit: it doesn't let sites store more data, it removes them from the auto-evict list ...
4 years, 3 months ago (2016-09-21 20:38:23 UTC) #10
msramek
Ok, that makes sense. I was considering whether history would be a better option, and ...
4 years, 3 months ago (2016-09-22 16:23:52 UTC) #15
msramek
Hmm, one more question - does this only affect local storage or other backends as ...
4 years, 3 months ago (2016-09-22 16:30:59 UTC) #16
dmurph
On 2016/09/22 16:30:59, msramek wrote: > Hmm, one more question - does this only affect ...
4 years, 3 months ago (2016-09-23 18:31:16 UTC) #17
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/2354843006/20001
4 years, 3 months ago (2016-09-23 18:32:34 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/231633)
4 years, 3 months ago (2016-09-23 19:13:47 UTC) #22
msramek
OK. Those failing tests are exactly the reason I was asking - if we could ...
4 years, 3 months ago (2016-09-23 19:57:40 UTC) #23
dmurph
Thanks for the info, I fixed the tests but added a bug to support it. ...
4 years, 3 months ago (2016-09-23 21:34:47 UTC) #26
msramek
A TODO and a bug to add the extensions API later SGTM. However, when we ...
4 years, 2 months ago (2016-09-26 12:59:00 UTC) #30
dmurph
https://codereview.chromium.org/2354843006/diff/40001/chrome/browser/extensions/api/browsing_data/browsing_data_test.cc File chrome/browser/extensions/api/browsing_data/browsing_data_test.cc (right): https://codereview.chromium.org/2354843006/diff/40001/chrome/browser/extensions/api/browsing_data/browsing_data_test.cc#newcode501 chrome/browser/extensions/api/browsing_data/browsing_data_test.cc:501: int site_data_no_plugins = site_data_no_usage & site_data_no_durable & On 2016/09/26 ...
4 years, 2 months ago (2016-09-28 18:12:52 UTC) #32
dmurph
For the browsing data api question: A hosted app is different than durable, but the ...
4 years, 2 months ago (2016-09-28 18:14:56 UTC) #34
Mike West
The changes to the extension test LGTM. Deferring to msramek@ on the rest.
4 years, 2 months ago (2016-09-28 19:48:33 UTC) #37
dmurph
Thanks! The discussion between martin and I after his LGTM was just the test and ...
4 years, 2 months ago (2016-09-29 20:41:05 UTC) #38
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/2354843006/60001
4 years, 2 months ago (2016-09-29 20:42:01 UTC) #41
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-29 21:20:34 UTC) #43
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 21:23:16 UTC) #45
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/27ca374c96f1b58190e64520e2ae65d9e7a28ccc
Cr-Commit-Position: refs/heads/master@{#421936}

Powered by Google App Engine
This is Rietveld 408576698