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

Issue 1979733002: Add ability to clear content licenses (Closed)

Created:
4 years, 7 months ago by jrummell
Modified:
4 years, 6 months ago
Reviewers:
kinuko, bbudge, xhwang, nhiroki
CC:
chromium-reviews, darin-cc_chromium.org, wjmaclean, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ability to delete plugin private data Currently encrypted media content licenses are stored in plugin private data (as decryption happens in a pepper plugin). Add the ability to erase the data on request. As the data is organized by origin and plugin, all files for a particular origin/plugin combination are removed if any of the files matches the time criteria. The existing plugins only use 1 file currently, but this should avoid issues if the plugins change to use multiple files. The UI is still being debated, so this is simply adding the ability to delete the data once called. BUG=607631 TEST=new content_unittests pass Committed: https://crrev.com/bb33a9731f1bb62cebcab1dbdb795e6cf9ac1140 Cr-Commit-Position: refs/heads/master@{#399322}

Patch Set 1 #

Total comments: 9

Patch Set 2 : remove ContentLicense #

Patch Set 3 : determine plugin list #

Total comments: 22

Patch Set 4 : changes #

Total comments: 20

Patch Set 5 : more changes #

Total comments: 3

Patch Set 6 : FileTaskRunner #

Total comments: 2

Patch Set 7 : FILE -> IO thread #

Total comments: 6

Patch Set 8 : changes #

Total comments: 16

Patch Set 9 : seperate file #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+796 lines, -4 lines) Patch
A content/browser/plugin_private_storage_helper.h View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 2 comments Download
A content/browser/plugin_private_storage_helper.cc View 1 2 3 4 5 6 7 8 1 chunk +415 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +18 lines, -1 line 0 comments Download
M content/browser/storage_partition_impl_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +318 lines, -2 lines 3 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/browser/storage_partition.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/shared_impl/file_system_util.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M ppapi/shared_impl/ppapi_constants.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (9 generated)
jrummell
PTAL. This is the code needed to hook up with the current chrome://settings/clearBrowsingData (if needed).
4 years, 7 months ago (2016-05-13 23:27:02 UTC) #2
xhwang
Thanks!!! I didn't review details since I am really not familiar with this code. Could ...
4 years, 7 months ago (2016-05-16 17:35:23 UTC) #3
jrummell
Updated to remove references to ContentLicenses. Adding nhiroki@ as somebody familiar with the plugin filesystem. ...
4 years, 7 months ago (2016-05-19 00:45:57 UTC) #5
jrummell
Based on comments from nhiroki@, I've removed the plugin list and now determine the plugin ...
4 years, 7 months ago (2016-05-20 22:17:13 UTC) #6
nhiroki
https://codereview.chromium.org/1979733002/diff/40001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1979733002/diff/40001/content/browser/storage_partition_impl.cc#newcode236 content/browser/storage_partition_impl.cc:236: const scoped_refptr<storage::FileSystemContext>& filesystem_context, Passing "const scoped_refptr<Foo>&" is not encouraged: ...
4 years, 7 months ago (2016-05-23 05:07:51 UTC) #7
jrummell
Updated. https://codereview.chromium.org/1979733002/diff/40001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1979733002/diff/40001/content/browser/storage_partition_impl.cc#newcode236 content/browser/storage_partition_impl.cc:236: const scoped_refptr<storage::FileSystemContext>& filesystem_context, On 2016/05/23 05:07:51, nhiroki wrote: ...
4 years, 7 months ago (2016-05-23 22:25:36 UTC) #8
nhiroki
Looks good overall. I think it's a good time to ask real owners to review. ...
4 years, 7 months ago (2016-05-24 01:40:03 UTC) #9
jrummell
Adding OWNERS. bbudge@ for ppapi/ kinuko@ for content/ https://codereview.chromium.org/1979733002/diff/60001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1979733002/diff/60001/content/browser/storage_partition_impl.cc#newcode286 content/browser/storage_partition_impl.cc:286: base::Time ...
4 years, 7 months ago (2016-05-24 22:15:33 UTC) #12
kinuko
https://codereview.chromium.org/1979733002/diff/80001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1979733002/diff/80001/content/browser/storage_partition_impl.cc#newcode1222 content/browser/storage_partition_impl.cc:1222: BrowserThread::PostTask( Should this use filesystem_context->default_file_task_runner() rather than FILE thread ...
4 years, 7 months ago (2016-05-25 08:57:53 UTC) #13
jrummell
Question on the threading model below. https://codereview.chromium.org/1979733002/diff/80001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1979733002/diff/80001/content/browser/storage_partition_impl.cc#newcode1222 content/browser/storage_partition_impl.cc:1222: BrowserThread::PostTask( On 2016/05/25 ...
4 years, 7 months ago (2016-05-26 00:35:10 UTC) #14
jrummell
Updated to use FileTaskRunner where appropriate. https://codereview.chromium.org/1979733002/diff/80001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1979733002/diff/80001/content/browser/storage_partition_impl.cc#newcode1222 content/browser/storage_partition_impl.cc:1222: BrowserThread::PostTask( On 2016/05/26 ...
4 years, 7 months ago (2016-05-26 01:23:29 UTC) #15
kinuko
Thanks for looking into further, I wasn't super sure we specifically use thread task runner ...
4 years, 7 months ago (2016-05-26 01:50:15 UTC) #16
kinuko
Ah ok, I got it. So most of async operations expect that they're issued on ...
4 years, 7 months ago (2016-05-26 01:56:14 UTC) #17
kinuko
https://codereview.chromium.org/1979733002/diff/100001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1979733002/diff/100001/content/browser/storage_partition_impl.cc#newcode489 content/browser/storage_partition_impl.cc:489: BrowserThread::FILE, FROM_HERE, It's not obvious why we still need ...
4 years, 7 months ago (2016-05-26 02:19:45 UTC) #18
jrummell
Updated so that PluginPrivateDataByOriginDeletionHelper() runs on the IO thread, plus changes to fix Win compile ...
4 years, 7 months ago (2016-05-26 21:40:31 UTC) #19
nhiroki
lgtm https://codereview.chromium.org/1979733002/diff/120001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1979733002/diff/120001/content/browser/storage_partition_impl.cc#newcode423 content/browser/storage_partition_impl.cc:423: // All of the operations in this class ...
4 years, 6 months ago (2016-05-28 00:47:42 UTC) #20
bbudge
Pepper lgtm
4 years, 6 months ago (2016-05-28 02:01:30 UTC) #21
kinuko
lgtm
4 years, 6 months ago (2016-05-31 15:13:27 UTC) #22
bbudge
ppapi lgtm
4 years, 6 months ago (2016-05-31 15:14:15 UTC) #23
xhwang
Please update the CL title to reflect what we are doing (deleting plugin private files). ...
4 years, 6 months ago (2016-06-01 05:44:29 UTC) #24
jrummell
Moved the code to a separate file, and added a test to try writing a ...
4 years, 6 months ago (2016-06-02 00:01:09 UTC) #25
xhwang
Thanks! This is much better now. I still have a question about potential race condition ...
4 years, 6 months ago (2016-06-02 23:51:45 UTC) #27
jrummell
Comments only. kinuko / nhiroki: Question below on how to prevent races between file read/write ...
4 years, 6 months ago (2016-06-08 23:44:08 UTC) #28
nhiroki
Sorry for my delated reply. https://codereview.chromium.org/1979733002/diff/160001/content/browser/storage_partition_impl_unittest.cc File content/browser/storage_partition_impl_unittest.cc (right): https://codereview.chromium.org/1979733002/diff/160001/content/browser/storage_partition_impl_unittest.cc#newcode1280 content/browser/storage_partition_impl_unittest.cc:1280: run_loop.Run(); On 2016/06/08 23:44:08, ...
4 years, 6 months ago (2016-06-09 15:59:48 UTC) #29
nhiroki
On 2016/06/09 15:59:48, nhiroki wrote: > Sorry for my delated reply. s/delated/delayed/
4 years, 6 months ago (2016-06-09 16:00:44 UTC) #30
kinuko
Currently we asynchronously process files/directories one by one after this point, so it's possible that ...
4 years, 6 months ago (2016-06-10 02:35:35 UTC) #31
xhwang
Thanks for all the inputs. LGTM!
4 years, 6 months ago (2016-06-10 17:26:13 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1979733002/160001
4 years, 6 months ago (2016-06-10 22:07:20 UTC) #35
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 6 months ago (2016-06-10 23:46:34 UTC) #37
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-10 23:46:40 UTC) #38
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 23:49:41 UTC) #40
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/bb33a9731f1bb62cebcab1dbdb795e6cf9ac1140
Cr-Commit-Position: refs/heads/master@{#399322}

Powered by Google App Engine
This is Rietveld 408576698