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

Issue 1297093002: Cache Storage API: Hook up to chrome://settings/cookies (Closed)

Created:
5 years, 4 months ago by jsbell
Modified:
5 years, 4 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, extensions-reviews_chromium.org, wjmaclean, michaelpg+watch-options_chromium.org, jam, raymes+watch_chromium.org, nhiroki, darin-cc_chromium.org, jkarlin+watch_chromium.org, asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, markusheintz_, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cache Storage API: Hook up to chrome://settings/cookies Expose each origin's usage (bytes, last modified) of the Service Worker Cache Storage API in the cookie tree UI and allow privacy-concerned individuals to nuke it from orbit. BUG=466371 Committed: https://crrev.com/4c354468b01a2389a886ce21d1869582ac20cbe8 Cr-Commit-Position: refs/heads/master@{#344891} Committed: https://crrev.com/e1fe969b4080d3990dd4712e64411717159917b1 Cr-Commit-Position: refs/heads/master@{#344944}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Review feedback #

Patch Set 3 : Added unit tests for GetOriginUsage / GetAllOriginsUsage #

Patch Set 4 : OSX and GN build fixes #

Total comments: 9

Patch Set 5 : Review feedback #

Patch Set 6 : OSX fix #

Patch Set 7 : copy/paste in OSX, sigh #

Total comments: 8

Patch Set 8 : Review feedback #

Total comments: 4

Patch Set 9 : Remove cache_storage_usage_info.cc #

Patch Set 10 : Rebased #

Patch Set 11 : Rebase onto https://codereview.chromium.org/1297023004 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1741 lines, -460 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/preferences/website_preference_bridge.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data/browsing_data_cache_storage_helper.h View 1 2 3 4 1 chunk +119 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data/browsing_data_cache_storage_helper.cc View 1 2 3 4 1 chunk +152 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data/browsing_data_cache_storage_helper_browsertest.cc View 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data/browsing_data_cache_storage_helper_unittest.cc View 1 chunk +72 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 23 chunks +171 lines, -119 lines 0 comments Download
M chrome/browser/browsing_data/cookies_tree_model.h View 1 10 chunks +51 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/cookies_tree_model.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +94 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/cookies_tree_model_unittest.cc View 1 2 3 4 5 6 7 8 9 10 58 chunks +289 lines, -123 lines 0 comments Download
M chrome/browser/browsing_data/local_data_container.h View 1 7 chunks +19 lines, -12 lines 0 comments Download
M chrome/browser/browsing_data/local_data_container.cc View 1 4 chunks +16 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data/mock_browsing_data_cache_storage_helper.h View 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data/mock_browsing_data_cache_storage_helper.cc View 1 chunk +63 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/local_shared_objects_container.h View 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/local_shared_objects_container.cc View 5 chunks +26 lines, -19 lines 0 comments Download
M chrome/browser/extensions/api/browsing_data/browsing_data_api.h View 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/browsing_data/browsing_data_api.cc View 4 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/browsing_data/browsing_data_test.cc View 4 chunks +38 lines, -32 lines 0 comments Download
M chrome/browser/resources/options/cookies_list.js View 4 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/cookie_details.h View 6 chunks +16 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/cookie_details.mm View 1 2 3 3 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/cookie_details_unittest.mm View 1 2 3 4 5 6 9 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/cookies_tree_model_util.cc View 3 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/cookies_view_handler.cc View 3 chunks +64 lines, -59 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/cache_storage/cache_storage_context_impl.h View 1 3 chunks +9 lines, -5 lines 0 comments Download
M content/browser/cache_storage/cache_storage_context_impl.cc View 1 chunk +20 lines, -0 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager.h View 1 2 3 4 5 6 7 6 chunks +12 lines, -6 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager.cc View 1 2 3 4 5 6 7 6 chunks +56 lines, -6 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager_unittest.cc View 1 2 3 4 5 6 7 14 chunks +106 lines, -66 lines 0 comments Download
M content/browser/storage_partition_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 2 chunks +4 lines, -4 lines 0 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
A content/public/browser/cache_storage_context.h View 1 1 chunk +35 lines, -0 lines 0 comments Download
A content/public/browser/cache_storage_usage_info.h View 1 2 3 4 5 6 7 8 1 chunk +35 lines, -0 lines 0 comments Download
M content/public/browser/storage_partition.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -2 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 39 (13 generated)
jsbell
omfg I hate this code. michaeln@, jkarlin@ - can you take an initial look before ...
5 years, 4 months ago (2015-08-17 23:46:50 UTC) #1
jkarlin
I looked at the content/ code only. That part lgtm with nits. https://codereview.chromium.org/1297093002/diff/1/content/browser/cache_storage/cache_storage_manager.cc File content/browser/cache_storage/cache_storage_manager.cc ...
5 years, 4 months ago (2015-08-18 13:22:36 UTC) #2
jsbell
https://codereview.chromium.org/1297093002/diff/1/content/browser/cache_storage/cache_storage_manager.cc File content/browser/cache_storage/cache_storage_manager.cc (right): https://codereview.chromium.org/1297093002/diff/1/content/browser/cache_storage/cache_storage_manager.cc#newcode241 content/browser/cache_storage/cache_storage_manager.cc:241: // TODO(jsbell): Should this be filtering by origin? On ...
5 years, 4 months ago (2015-08-18 18:42:43 UTC) #3
michaeln
lgtm > omfg I hate this code me too, /content is ok but /chrome is ...
5 years, 4 months ago (2015-08-18 22:25:52 UTC) #4
jsbell
Initial simplification per review. I didn't attempt to merge the Canned/Mock classes. https://codereview.chromium.org/1297093002/diff/60001/chrome/browser/browsing_data/browsing_data_cache_storage_helper.cc File chrome/browser/browsing_data/browsing_data_cache_storage_helper.cc ...
5 years, 4 months ago (2015-08-19 01:06:19 UTC) #5
michaeln
still lgtm
5 years, 4 months ago (2015-08-19 21:11:03 UTC) #6
jsbell
bauerb@ - can you please review changes in chrome/browser/{android,content_settings,extensions,resources,ui} isherman@ - can you please review ...
5 years, 4 months ago (2015-08-19 21:31:27 UTC) #8
Ilya Sherman
histograms lgtm
5 years, 4 months ago (2015-08-20 00:21:13 UTC) #9
Bernhard Bauer
LGTM, but I found some nits: https://codereview.chromium.org/1297093002/diff/60001/chrome/browser/browsing_data/mock_browsing_data_cache_storage_helper.h File chrome/browser/browsing_data/mock_browsing_data_cache_storage_helper.h (right): https://codereview.chromium.org/1297093002/diff/60001/chrome/browser/browsing_data/mock_browsing_data_cache_storage_helper.h#newcode20 chrome/browser/browsing_data/mock_browsing_data_cache_storage_helper.h:20: class MockBrowsingDataCacheStorageHelper On ...
5 years, 4 months ago (2015-08-20 11:18:53 UTC) #10
jsbell
https://codereview.chromium.org/1297093002/diff/120001/chrome/browser/browsing_data/browsing_data_remover.h File chrome/browser/browsing_data/browsing_data_remover.h (right): https://codereview.chromium.org/1297093002/diff/120001/chrome/browser/browsing_data/browsing_data_remover.h#newcode91 chrome/browser/browsing_data/browsing_data_remover.h:91: // storage, webSQL, service workers, caches storage, and plugin ...
5 years, 4 months ago (2015-08-20 19:04:51 UTC) #11
jam
lgtm https://codereview.chromium.org/1297093002/diff/140001/content/public/browser/cache_storage_usage_info.cc File content/public/browser/cache_storage_usage_info.cc (right): https://codereview.chromium.org/1297093002/diff/140001/content/public/browser/cache_storage_usage_info.cc#newcode1 content/public/browser/cache_storage_usage_info.cc:1: // Copyright 2015 The Chromium Authors. All rights ...
5 years, 4 months ago (2015-08-20 22:57:08 UTC) #12
jsbell
https://codereview.chromium.org/1297093002/diff/140001/content/public/browser/cache_storage_usage_info.cc File content/public/browser/cache_storage_usage_info.cc (right): https://codereview.chromium.org/1297093002/diff/140001/content/public/browser/cache_storage_usage_info.cc#newcode1 content/public/browser/cache_storage_usage_info.cc:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 4 months ago (2015-08-20 23:46:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1297093002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1297093002/160001
5 years, 4 months ago (2015-08-21 16:48:46 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/91312) win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, ...
5 years, 4 months ago (2015-08-21 16:57:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1297093002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1297093002/180001
5 years, 4 months ago (2015-08-21 16:58:32 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/59829)
5 years, 4 months ago (2015-08-21 18:12:38 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1297093002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1297093002/180001
5 years, 4 months ago (2015-08-21 19:00:51 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/59943)
5 years, 4 months ago (2015-08-21 20:11:34 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1297093002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1297093002/180001
5 years, 4 months ago (2015-08-21 22:06:02 UTC) #29
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 4 months ago (2015-08-21 22:49:09 UTC) #30
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/4c354468b01a2389a886ce21d1869582ac20cbe8 Cr-Commit-Position: refs/heads/master@{#344891}
5 years, 4 months ago (2015-08-21 22:49:59 UTC) #31
alexmos
I had to revert this due to compile failures on the waterfall: https://chromium.googlesource.com/chromium/src/+/9db1c3724bccfe63532a203e4e0ac5c7ea4ea0f1
5 years, 4 months ago (2015-08-21 23:23:03 UTC) #33
jsbell
On 2015/08/21 23:23:03, alexmos wrote: > I had to revert this due to compile failures ...
5 years, 4 months ago (2015-08-21 23:53:47 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1297093002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1297093002/200001
5 years, 4 months ago (2015-08-21 23:55:06 UTC) #37
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 4 months ago (2015-08-22 01:02:54 UTC) #38
commit-bot: I haz the power
5 years, 4 months ago (2015-08-22 01:03:33 UTC) #39
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/e1fe969b4080d3990dd4712e64411717159917b1
Cr-Commit-Position: refs/heads/master@{#344944}

Powered by Google App Engine
This is Rietveld 408576698