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

Issue 2745323004: Introduce DATA_TYPE_DOM_STORAGE for DOM-Accessible storage (Closed)

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

Description

Introduce DATA_TYPE_DOM_STORAGE for DOM-Accessible storage Clear-Site-Data specifies a "storage" datatype, representing DOM-accessible storage. This corresponds to the 7 storage datatypes in BrowsingDataRemover, and possibly others defined in the embedder. We define the DATA_TYPE_EMBEDDER_DOM_STORAGE pseudo-datatype that serves as a signal for the embedder delegate to delete its DOM-accessible storage. Then, we define DATA_TYPE_DOM_STORAGE as a group datatype (bitmask) of the abovementioned 7 storage datatypes and DATA_TYPE_EMBEDDER_STORAGE. See the design doc for the rationale for this approach. https://docs.google.com/document/d/1I6m4QwbTNhG6wdtazamhTnArJN-UMUGqpvwH6InBEaM/edit#heading=h.q2f5zo9hgn7o Currently, the only datatype in Chrome that is related to DOM storage is DURABLE_PERMISSION (considering that PLUGIN_DATA is currently deleted by Clear-Site-Data as part of "cookies"). The other datatypes, such as WEB_APP_DATA and SITE_USAGE_DATA are only metadata that Chrome keeps. Therefore, replacing DATA_TYPE_SITE_DATA with DATA_TYPE_DOM_STORAGE in ChromeContentBrowserClient::ClearSiteData() is also a functional change to Clear-Site-Data, weakening it to only delete DOM-accessible storage. BUG=668114 Review-Url: https://codereview.chromium.org/2745323004 Cr-Commit-Position: refs/heads/master@{#457046} Committed: https://chromium.googlesource.com/chromium/src/+/f4ab8376fc0e86d3a8e6516256711c9da85002c3

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -24 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover.h View 1 chunk +20 lines, -6 lines 0 comments Download
M chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_unittest.cc View 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/chrome_content_browser_client_unittest.cc View 1 chunk +11 lines, -12 lines 0 comments Download

Messages

Total messages: 25 (20 generated)
msramek
Hi Mike, Please have a look! The solution is slightly different than we talked about ...
3 years, 9 months ago (2017-03-14 22:09:45 UTC) #11
Mike West
I like this approach, thanks for the explanation in the design doc. LGTM. I think ...
3 years, 9 months ago (2017-03-15 08:09:47 UTC) #19
msramek
Thanks, Mike! Regarding the documentation, I have it on my radar! My plan is to ...
3 years, 9 months ago (2017-03-15 10:05:17 UTC) #20
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/2745323004/40001
3 years, 9 months ago (2017-03-15 10:05:34 UTC) #22
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 10:11:24 UTC) #25
Message was sent while issue was closed.
Committed patchset #1 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/f4ab8376fc0e86d3a8e651625671...

Powered by Google App Engine
This is Rietveld 408576698