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

Issue 7129018: Time-based removal of temporary file systems via BrowsingDataRemover (Closed)

Created:
9 years, 6 months ago by Mike West
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., Elliot Glaysher, sail
Visibility:
Public.

Description

Time-based removal of temporary file systems via BrowsingDataRemover QuotaManager takes over much of the functionality that BrowsingDataRemover implemented for FileSystem and Appcache removal. It also handles WebSQL databases, but I've left the database deletion in, as IndexedDBs aren't yet handled correctly, so we need to take care of them explicitly. BUG=63700 TEST=unit_tests, test_shell_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94913

Patch Set 1 #

Total comments: 2

Patch Set 2 : Finishing first pass at temporary filesystem removal. #

Patch Set 3 : FILE_PATH_LITERAL macro. #

Total comments: 4

Patch Set 4 : QuotaManager. #

Total comments: 1

Patch Set 5 : QuotaManager deletion for appcache too. #

Patch Set 6 : Rolling everything back into this CL. #

Total comments: 3

Patch Set 7 : Dropping an include I shouldn't have included. #

Patch Set 8 : const_iterator. #

Total comments: 36

Patch Set 9 : Adding a test for protected quota. #

Patch Set 10 : Jochen's feedback. #

Patch Set 11 : Fixing race condition. #

Total comments: 6

Patch Set 12 : Marja's feedback. #

Total comments: 29

Patch Set 13 : Throwing away more code. #

Patch Set 14 : michaeln's feedback. #

Total comments: 7

Patch Set 15 : Rebase + michaeln's feedback. #

Patch Set 16 : Initialize vars. Doh. #

Patch Set 17 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+754 lines, -361 lines) Patch
M chrome/browser/browsing_data_remover.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +35 lines, -50 lines 0 comments Download
M chrome/browser/browsing_data_remover.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +95 lines, -175 lines 0 comments Download
M chrome/browser/browsing_data_remover_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +209 lines, -121 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -1 line 0 comments Download
A webkit/quota/mock_quota_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +83 lines, -0 lines 0 comments Download
A webkit/quota/mock_quota_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +136 lines, -0 lines 0 comments Download
A webkit/quota/mock_quota_manager_unittest.cc View 1 2 3 4 5 1 chunk +171 lines, -0 lines 0 comments Download
M webkit/quota/quota_manager.h View 1 2 3 4 5 6 5 chunks +10 lines, -8 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Mike West
Hi folks. I'm stuck, and would appreciate a bit of help. Following up on our ...
9 years, 6 months ago (2011-06-08 13:39:26 UTC) #1
ericu
http://codereview.chromium.org/7129018/diff/1/chrome/browser/browsing_data_remover.cc File chrome/browser/browsing_data_remover.cc (right): http://codereview.chromium.org/7129018/diff/1/chrome/browser/browsing_data_remover.cc#newcode600 chrome/browser/browsing_data_remover.cc:600: fileapi::kFileSystemTypeTemporary, FilePath(), false))); This isn't the right path to ...
9 years, 6 months ago (2011-06-08 18:40:23 UTC) #2
Use mkwst_at_chromium.org plz.
Thanks! http://codereview.chromium.org/7129018/diff/1/chrome/browser/browsing_data_remover.cc File chrome/browser/browsing_data_remover.cc (right): http://codereview.chromium.org/7129018/diff/1/chrome/browser/browsing_data_remover.cc#newcode600 chrome/browser/browsing_data_remover.cc:600: fileapi::kFileSystemTypeTemporary, FilePath(), false))); On 2011/06/08 18:40:24, ericu wrote: ...
9 years, 6 months ago (2011-06-08 19:00:09 UTC) #3
michaeln
> > Kinuko, can he leverage the quota code to find out what's really been ...
9 years, 6 months ago (2011-06-08 20:22:25 UTC) #4
Mike West
Thanks to both of you for the feedback. I think doing this through the quota ...
9 years, 6 months ago (2011-06-09 14:10:20 UTC) #5
michaeln
On 2011/06/09 14:10:20, Mike West wrote: > Thanks to both of you for the feedback. ...
9 years, 6 months ago (2011-06-10 00:47:54 UTC) #6
kinuko
On 2011/06/10 00:47:54, michaeln wrote: > On 2011/06/09 14:10:20, Mike West wrote: > > Thanks ...
9 years, 6 months ago (2011-06-10 03:44:36 UTC) #7
Mike West
Nope, you're entirely correct: there's no rush. I wanted to get this implemented while it ...
9 years, 6 months ago (2011-06-10 07:02:00 UTC) #8
Mike West
On 2011/06/10 07:02:00, Mike West wrote: > Nope, you're entirely correct: there's no rush. I ...
9 years, 6 months ago (2011-06-15 07:14:17 UTC) #9
Mike West
On 2011/06/15 07:14:17, Mike West wrote: > I lied, http://crbug.com/86087 has been marked as blocking ...
9 years, 6 months ago (2011-06-15 10:50:18 UTC) #10
kinuko
I'm not 100% sure if the 'blocker' really include time-based deletion, anyway I moved the ...
9 years, 6 months ago (2011-06-15 11:25:14 UTC) #11
Mike West
On 2011/06/15 11:25:14, kinuko wrote: > I'm not 100% sure if the 'blocker' really include ...
9 years, 6 months ago (2011-06-15 11:45:20 UTC) #12
michaeln
I think the QuotaManager APIs needed for this are available now. Mike, is it still ...
9 years, 5 months ago (2011-07-20 20:28:21 UTC) #13
Mike West
Yup. Tell me which APIs I should hook into, and I'll take a look at ...
9 years, 5 months ago (2011-07-20 20:34:50 UTC) #14
michaeln
The two new QuotaManager methods are declared in quota_manager.h. void GetOriginsModifiedSince( StorageType type, base::Time modified_since, ...
9 years, 5 months ago (2011-07-21 02:22:23 UTC) #15
Mike West
On 2011/07/21 02:22:23, michaeln wrote: > Given a modified_since time of 0, the first method ...
9 years, 5 months ago (2011-07-21 07:46:29 UTC) #16
Mike West
This is based on the TestingProfile changes I'm still fiddling with in http://codereview.chromium.org/7464029/ Assuming I ...
9 years, 5 months ago (2011-07-21 21:48:39 UTC) #17
michaeln
The unit tests could probably be much simpler. What's there now part unit test and ...
9 years, 5 months ago (2011-07-21 23:49:15 UTC) #18
kinuko
On 2011/07/21 23:49:15, michaeln wrote: > The unit tests could probably be much simpler. What's ...
9 years, 5 months ago (2011-07-22 02:06:34 UTC) #19
Mike West
I've eventually gone the route michaeln suggested by mocking out the bits of QuotaManager that ...
9 years, 5 months ago (2011-07-25 18:13:41 UTC) #20
jochen (gone - plz use gerrit)
http://codereview.chromium.org/7129018/diff/36001/chrome/browser/browsing_data_remover.cc File chrome/browser/browsing_data_remover.cc (right): http://codereview.chromium.org/7129018/diff/36001/chrome/browser/browsing_data_remover.cc#newcode10 chrome/browser/browsing_data_remover.cc:10: #include "base/logging.h" why separate from the other includes? http://codereview.chromium.org/7129018/diff/36001/chrome/browser/browsing_data_remover.cc#newcode52 ...
9 years, 5 months ago (2011-07-26 08:55:33 UTC) #21
marja
Commented some minor things I bumped into when reading through this cl. http://codereview.chromium.org/7129018/diff/35004/chrome/browser/browsing_data_remover.cc File chrome/browser/browsing_data_remover.cc ...
9 years, 5 months ago (2011-07-26 11:53:06 UTC) #22
Mike West
Thanks Jochen and Marja for your comments. I think I've tracked down the race condition ...
9 years, 5 months ago (2011-07-26 12:08:32 UTC) #23
michaeln
http://codereview.chromium.org/7129018/diff/28001/chrome/browser/browsing_data_remover.cc File chrome/browser/browsing_data_remover.cc (left): http://codereview.chromium.org/7129018/diff/28001/chrome/browser/browsing_data_remover.cc#oldcode235 chrome/browser/browsing_data_remover.cc:235: &BrowsingDataRemover::ClearAppCacheOnIOThread)); hoooray for deleted code! http://codereview.chromium.org/7129018/diff/28001/chrome/browser/browsing_data_remover.cc File chrome/browser/browsing_data_remover.cc (right): ...
9 years, 5 months ago (2011-07-26 22:40:19 UTC) #24
Mike West
Thanks for the review. One or two open questions which I'll try to ping you ...
9 years, 5 months ago (2011-07-27 12:49:18 UTC) #25
michaeln
this just about lgtm, please see the one comment about code reuse in particular http://codereview.chromium.org/7129018/diff/39001/chrome/browser/browsing_data_remover.cc ...
9 years, 4 months ago (2011-07-28 19:17:47 UTC) #26
Use mkwst_at_chromium.org plz.
Answered your question about code reuse: I'm not sure it's possible without a bit more ...
9 years, 4 months ago (2011-07-28 19:59:09 UTC) #27
Mike West
Jochen tracked down some uninitialized variables that might have been causing the broken tests on ...
9 years, 4 months ago (2011-07-29 16:39:58 UTC) #28
michaeln
> On 2011/07/28 19:17:48, michaeln wrote: > > You may be able to get a ...
9 years, 4 months ago (2011-07-29 19:00:10 UTC) #29
Mike West
Jochen's fix seems to have solved the issues with the Win and Mac trybots. I've ...
9 years, 4 months ago (2011-08-01 09:04:21 UTC) #30
commit-bot: I haz the power
Presubmit check for 7129018-47001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 4 months ago (2011-08-01 10:41:11 UTC) #31
Mike West
On 2011/08/01 10:41:11, I haz the power (commit-bot) wrote: > ** Presubmit ERRORS ** > ...
9 years, 4 months ago (2011-08-01 10:52:05 UTC) #32
jochen (gone - plz use gerrit)
I think in this case it's ok to submit with TBR=mirandac
9 years, 4 months ago (2011-08-01 10:54:32 UTC) #33
Miranda Callahan
On 2011/08/01 10:54:32, jochen wrote: > I think in this case it's ok to submit ...
9 years, 4 months ago (2011-08-01 14:40:51 UTC) #34
commit-bot: I haz the power
9 years, 4 months ago (2011-08-01 16:23:43 UTC) #35
Change committed as 94913

Powered by Google App Engine
This is Rietveld 408576698