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

Issue 37843003: BrowsingDataRemover, (re)use StoragePartition deletion code. (Closed)

Created:
7 years, 2 months ago by lazyboy
Modified:
7 years, 1 month ago
Reviewers:
miket_OOO, Mike West, Nico, jam, boliu
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, markusheintz_
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

BrowsingDataRemover, (re)use StoragePartition deletion code. This CL removes code duplication around storage partition related data removal code from BrowsingDataRemover and re-uses StoragePartition::ClearData* method. BUG=180118 Test= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233365

Patch Set 1 : . ... #

Total comments: 4

Patch Set 2 : Update unit tests. #

Patch Set 3 : Update unit tests [500 retry] #

Total comments: 6

Patch Set 4 : Rebase. #

Patch Set 5 : Address comments from miket@ #

Total comments: 4

Patch Set 6 : Address comments form mkwst@. #

Total comments: 2

Patch Set 7 : rebase #

Patch Set 8 : combine 3 ClearData* functions into one (ClearData()). #

Patch Set 9 : Combine functions. #

Total comments: 2

Patch Set 10 : Rebase. #

Patch Set 11 : Address comments + Fix and add unit_tests. #

Patch Set 12 : sync + fix compile on some bots + initialize sp_for_testing_ instance to NULL (forgot after non sco… #

Patch Set 13 : rebase @tott. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1778 lines, -845 lines) Patch
M android_webview/native/aw_quota_manager_bridge_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +11 lines, -70 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 chunks +77 lines, -241 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 22 chunks +495 lines, -345 lines 0 comments Download
M chrome/browser/guestview/webview/webview_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +54 lines, -15 lines 0 comments Download
content/browser/storage_partition_impl.cc View 1 2 3 4 5 6 7 8 20 chunks +248 lines, -149 lines 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -2 lines 0 comments Download
content/browser/storage_partition_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +859 lines, -7 lines 2 comments Download
content/public/browser/storage_partition.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +21 lines, -13 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
lazyboy
+Albert for review. I'll add more reviewers later once we're happy with the CL. https://chromiumcodereview.appspot.com/37843003/diff/340001/chrome/browser/browsing_data/browsing_data_remover.cc ...
7 years, 2 months ago (2013-10-23 22:10:14 UTC) #1
awong
Forwarding to miket@. Mike, let me know if you want me to take a first ...
7 years, 2 months ago (2013-10-23 22:16:47 UTC) #2
miket_OOO
On 2013/10/23 22:16:47, awong wrote: > Forwarding to miket@. > > Mike, let me know ...
7 years, 2 months ago (2013-10-24 21:33:27 UTC) #3
lazyboy
https://chromiumcodereview.appspot.com/37843003/diff/340001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (left): https://chromiumcodereview.appspot.com/37843003/diff/340001/chrome/browser/browsing_data/browsing_data_remover.cc#oldcode616 chrome/browser/browsing_data/browsing_data_remover.cc:616: void BrowsingDataRemover::OverrideQuotaManagerForTesting( On 2013/10/23 22:10:14, lazyboy wrote: > The ...
7 years, 1 month ago (2013-10-25 23:50:21 UTC) #4
miket_OOO
LGTM https://chromiumcodereview.appspot.com/37843003/diff/420001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://chromiumcodereview.appspot.com/37843003/diff/420001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode562 chrome/browser/browsing_data/browsing_data_remover.cc:562: ~content::StoragePartition::QUOTA_MANAGED_STORAGE_MASK_PERSISTENT; I see what you're doing here, but ...
7 years, 1 month ago (2013-10-28 20:08:36 UTC) #5
lazyboy
+mkwst@ for revewing chrome/browser/browsing_data/* changes. https://chromiumcodereview.appspot.com/37843003/diff/420001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://chromiumcodereview.appspot.com/37843003/diff/420001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode562 chrome/browser/browsing_data/browsing_data_remover.cc:562: ~content::StoragePartition::QUOTA_MANAGED_STORAGE_MASK_PERSISTENT; On 2013/10/28 20:08:37, ...
7 years, 1 month ago (2013-10-28 22:14:50 UTC) #6
Mike West
The BrowsingDataRemover code changes lgtm (much cleaner!), but I think removing all the BDR tests ...
7 years, 1 month ago (2013-10-29 11:14:31 UTC) #7
lazyboy
@mkwst: I've added back the BDR tests /w modifications you have suggested. +John for content/* ...
7 years, 1 month ago (2013-10-30 00:33:23 UTC) #8
jam
https://codereview.chromium.org/37843003/diff/560001/content/public/browser/storage_partition.h File content/public/browser/storage_partition.h (right): https://codereview.chromium.org/37843003/diff/560001/content/public/browser/storage_partition.h#newcode123 content/public/browser/storage_partition.h:123: virtual void ClearDataForOriginWithinRange( can we combine this with the ...
7 years, 1 month ago (2013-10-30 18:15:24 UTC) #9
lazyboy
Diff is patchset #9 vs patchset #7. https://codereview.chromium.org/37843003/diff/560001/content/public/browser/storage_partition.h File content/public/browser/storage_partition.h (right): https://codereview.chromium.org/37843003/diff/560001/content/public/browser/storage_partition.h#newcode123 content/public/browser/storage_partition.h:123: virtual void ...
7 years, 1 month ago (2013-10-30 19:55:34 UTC) #10
Mike West
BrowsingDataRemover code and test changes LGTM. Thanks!
7 years, 1 month ago (2013-10-30 20:26:18 UTC) #11
jam
lgtm (I assume miket reviewed the content/browser changes)
7 years, 1 month ago (2013-10-31 00:05:48 UTC) #12
jam
https://codereview.chromium.org/37843003/diff/660001/content/public/browser/storage_partition.h File content/public/browser/storage_partition.h (right): https://codereview.chromium.org/37843003/diff/660001/content/public/browser/storage_partition.h#newcode55 content/public/browser/storage_partition.h:55: OriginMatcherFunction; nit: move this to line 108, convention for ...
7 years, 1 month ago (2013-10-31 00:06:05 UTC) #13
lazyboy
+boliu for android_webview/* Review. @mkwst: I've modified more tests in BrowsingDataRemoverTest similar to last round ...
7 years, 1 month ago (2013-10-31 20:55:29 UTC) #14
lazyboy
Actually adding boliu@ this time.
7 years, 1 month ago (2013-11-01 03:55:38 UTC) #15
boliu
android_webview lgtm
7 years, 1 month ago (2013-11-01 04:10:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/37843003/1060001
7 years, 1 month ago (2013-11-06 00:41:14 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=94408
7 years, 1 month ago (2013-11-06 04:44:12 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/37843003/1060001
7 years, 1 month ago (2013-11-06 16:54:25 UTC) #19
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-06 17:16:55 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/37843003/1060001
7 years, 1 month ago (2013-11-06 17:27:18 UTC) #21
commit-bot: I haz the power
Change committed as 233365
7 years, 1 month ago (2013-11-06 21:10:49 UTC) #22
Nico
https://codereview.chromium.org/37843003/diff/1060001/content/browser/storage_partition_impl_unittest.cc File content/browser/storage_partition_impl_unittest.cc (right): https://codereview.chromium.org/37843003/diff/1060001/content/browser/storage_partition_impl_unittest.cc#newcode257 content/browser/storage_partition_impl_unittest.cc:257: // if (IsWebSafeSchemeForTest(origin.scheme())) { Did you intentionally land this ...
7 years, 1 month ago (2013-11-07 20:01:29 UTC) #23
lazyboy
7 years, 1 month ago (2013-11-07 20:17:17 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/37843003/diff/1060001/content/browser/storage...
File content/browser/storage_partition_impl_unittest.cc (right):

https://codereview.chromium.org/37843003/diff/1060001/content/browser/storage...
content/browser/storage_partition_impl_unittest.cc:257: //  if
(IsWebSafeSchemeForTest(origin.scheme())) {
On 2013/11/07 20:01:30, Nico (ooo until Nov 12) wrote:
> Did you intentionally land this code commented out?

Mistake from me. Uncommenting them in other CL.

Powered by Google App Engine
This is Rietveld 408576698