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

Issue 9467003: Delete empty dom storage databases on destruction. (Closed)

Created:
8 years, 10 months ago by benm (inactive)
Modified:
8 years, 9 months ago
Reviewers:
michaeln
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

Delete empty dom storage databases on destruction. BUG=106763 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123960

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments. #

Total comments: 1

Patch Set 3 : Revert know_to_be_empty_ on transaction commit failure. #

Total comments: 8

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -2 lines) Patch
M webkit/dom_storage/dom_storage_database.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webkit/dom_storage/dom_storage_database.cc View 1 2 3 6 chunks +27 lines, -2 lines 0 comments Download
M webkit/dom_storage/dom_storage_database_unittest.cc View 1 1 chunk +54 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
benm (inactive)
try bot results aren't my fault! :)
8 years, 10 months ago (2012-02-24 12:17:12 UTC) #1
michaeln
http://codereview.chromium.org/9467003/diff/1/webkit/dom_storage/dom_storage_database.cc File webkit/dom_storage/dom_storage_database.cc (right): http://codereview.chromium.org/9467003/diff/1/webkit/dom_storage/dom_storage_database.cc#newcode47 webkit/dom_storage/dom_storage_database.cc:47: file_util::Delete(file_path_, false); maybe skip this if file_path.empty()? if (known_to_be_empty_ ...
8 years, 10 months ago (2012-02-25 02:55:54 UTC) #2
benm (inactive)
thanks, new patch on the way! http://codereview.chromium.org/9467003/diff/1/webkit/dom_storage/dom_storage_database.cc File webkit/dom_storage/dom_storage_database.cc (right): http://codereview.chromium.org/9467003/diff/1/webkit/dom_storage/dom_storage_database.cc#newcode47 webkit/dom_storage/dom_storage_database.cc:47: file_util::Delete(file_path_, false); On ...
8 years, 10 months ago (2012-02-27 12:06:25 UTC) #3
benm (inactive)
http://codereview.chromium.org/9467003/diff/7001/webkit/dom_storage/dom_storage_database.cc File webkit/dom_storage/dom_storage_database.cc (right): http://codereview.chromium.org/9467003/diff/7001/webkit/dom_storage/dom_storage_database.cc#newcode116 webkit/dom_storage/dom_storage_database.cc:116: return transaction.Commit(); hm, if the transaction fails, then we ...
8 years, 10 months ago (2012-02-27 12:19:24 UTC) #4
michaeln
http://codereview.chromium.org/9467003/diff/9001/webkit/dom_storage/dom_storage_database.cc File webkit/dom_storage/dom_storage_database.cc (right): http://codereview.chromium.org/9467003/diff/9001/webkit/dom_storage/dom_storage_database.cc#newcode64 webkit/dom_storage/dom_storage_database.cc:64: } i think we should set known_to_be_empty_ here since ...
8 years, 10 months ago (2012-02-27 19:28:47 UTC) #5
benm (inactive)
thanks! http://codereview.chromium.org/9467003/diff/9001/webkit/dom_storage/dom_storage_database.cc File webkit/dom_storage/dom_storage_database.cc (right): http://codereview.chromium.org/9467003/diff/9001/webkit/dom_storage/dom_storage_database.cc#newcode64 webkit/dom_storage/dom_storage_database.cc:64: } Got it. http://codereview.chromium.org/9467003/diff/9001/webkit/dom_storage/dom_storage_database.cc#newcode109 webkit/dom_storage/dom_storage_database.cc:109: // See if ...
8 years, 10 months ago (2012-02-27 19:36:15 UTC) #6
benm (inactive)
hopefully this one does the trick. ptal :)
8 years, 10 months ago (2012-02-27 20:03:39 UTC) #7
michaeln
lgtm
8 years, 10 months ago (2012-02-27 20:20:35 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benm@chromium.org/9467003/13001
8 years, 9 months ago (2012-02-28 10:00:57 UTC) #9
commit-bot: I haz the power
8 years, 9 months ago (2012-02-28 11:24:15 UTC) #10
Change committed as 123960

Powered by Google App Engine
This is Rietveld 408576698