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

Issue 7692016: Delete indexedDBs from the cookie tree ui. (Closed)

Created:
9 years, 4 months ago by michaeln
Modified:
9 years, 4 months ago
Reviewers:
Mike West, dgrogan
CC:
chromium-reviews, jochen (gone - plz use gerrit), Evan Stade, hans
Visibility:
Public.

Description

* Wire up the delete command in the cookie tree UI to actually delete indexedDBs. Also cleaned up some internal structures used by the UI layer. * Clean up some loose ends around the transition from sqlite backing to leveldb backing. Code had not been updated to reflect that the indexedDBpath is a directory path instead of a file path. * Fix a problem with reporting inconsistent size value to the quota manager. Now we always compute deltas against a cached size value and don't change the cached size value w/o reporting a delta. * Fix a problem with erroneously accessing the filesystem for queries about indexed db usage when working with incognito profiles. BUG=56249, 76641 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98352

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 17

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Total comments: 20

Patch Set 16 : '' #

Patch Set 17 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -265 lines) Patch
M chrome/browser/browsing_data_indexed_db_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +7 lines, -19 lines 0 comments Download
M chrome/browser/browsing_data_indexed_db_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 9 chunks +33 lines, -77 lines 0 comments Download
M chrome/browser/browsing_data_indexed_db_helper_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +5 lines, -12 lines 0 comments Download
M chrome/browser/browsing_data_indexed_db_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cookies_tree_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/cookies_tree_model_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/mock_browsing_data_indexed_db_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/mock_browsing_data_indexed_db_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +15 lines, -18 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/cookie_details.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/content_settings/cookie_details_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -13 lines 0 comments Download
M chrome/browser/ui/gtk/gtk_chrome_cookie_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/indexed_db_info_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/cookies_tree_model_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M content/browser/in_process_webkit/indexed_db_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +28 lines, -18 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +28 lines, -13 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 chunks +109 lines, -53 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_quota_client.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -8 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_quota_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
michaeln
I'll update the CL description to say more about what's in the change, but i ...
9 years, 4 months ago (2011-08-23 20:39:47 UTC) #1
michaeln
http://codereview.chromium.org/7692016/diff/17003/content/browser/in_process_webkit/indexed_db_context.cc File content/browser/in_process_webkit/indexed_db_context.cc (left): http://codereview.chromium.org/7692016/diff/17003/content/browser/in_process_webkit/indexed_db_context.cc#oldcode52 content/browser/in_process_webkit/indexed_db_context.cc:52: file_util::Delete(file_path, false); Looks like this was never updated in ...
9 years, 4 months ago (2011-08-23 21:54:39 UTC) #2
michaeln
hi mike, jochen's on vacaction till sept5 can u take a looks at the cookie ...
9 years, 4 months ago (2011-08-23 23:26:25 UTC) #3
Mike West
browsing_data_*, mock_browsing_data_*, and cookie_tree_* LGTM with nits, and one question about the mock. I think ...
9 years, 4 months ago (2011-08-24 08:09:00 UTC) #4
dgrogan
http://codereview.chromium.org/7692016/diff/18013/chrome/browser/ui/cocoa/content_settings/cookie_details.mm File chrome/browser/ui/cocoa/content_settings/cookie_details.mm (right): http://codereview.chromium.org/7692016/diff/18013/chrome/browser/ui/cocoa/content_settings/cookie_details.mm#newcode247 chrome/browser/ui/cocoa/content_settings/cookie_details.mm:247: indexedDBInfo->origin_url.spec()) retain]); What is webui? Content settings used to ...
9 years, 4 months ago (2011-08-24 22:20:37 UTC) #5
michaeln
ptal http://codereview.chromium.org/7692016/diff/18013/chrome/browser/browsing_data_indexed_db_helper.h File chrome/browser/browsing_data_indexed_db_helper.h (right): http://codereview.chromium.org/7692016/diff/18013/chrome/browser/browsing_data_indexed_db_helper.h#newcode35 chrome/browser/browsing_data_indexed_db_helper.h:35: const GURL& origin_url, On 2011/08/24 08:09:00, Mike West ...
9 years, 4 months ago (2011-08-25 01:20:04 UTC) #6
dgrogan
9 years, 4 months ago (2011-08-25 01:45:26 UTC) #7
LGTM

http://codereview.chromium.org/7692016/diff/18013/content/browser/in_process_...
File content/browser/in_process_webkit/indexed_db_context.cc (right):

http://codereview.chromium.org/7692016/diff/18013/content/browser/in_process_...
content/browser/in_process_webkit/indexed_db_context.cc:252:
FILE_PATH_LITERAL(".indexeddb"));
On 2011/08/25 01:20:04, michaeln wrote:
> Are you suggesting we change how the files are named?

Just an option.  But you're right, that'd be way overkill.

> I think we're stuck with
> the filenames that are being produced now since we shipped this already,
> unless/until we want to migrate from one naming scheme to another. I think
> that's out of scope for this CL.

Powered by Google App Engine
This is Rietveld 408576698