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

Issue 2802013002: Move BrowsingDataRemoverImpl:: CompletionInhibitor to the public interface (Closed)

Created:
3 years, 8 months ago by msramek
Modified:
3 years, 8 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, markusheintz_, michaelpg+watch-options_chromium.org, msramek+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move BrowsingDataRemoverImpl:: CompletionInhibitor to the public interface The CompletionInhibitor interface is removed in favor of a simpler SetWouldCompleteCallbackForTesting() method defined in BrowsingDataRemover. Its implementation BrowsingDataRemoverCompletionInhibitor is updated to use the new interface. This is necessary due to the fact that CompletionInhibitor was used both in chrome/ and in BrowsingDataRemoverImplTest which will move to content/, and thus its definition in BrowsingDataRemoverImpl (which will move to non-public content/) would not be visible in chrome/. On the way, this CL also resolves a TODO to make CompletionInhibitor non-static. TBR=dbeam@chromium.org BUG=483528, 668114 Review-Url: https://codereview.chromium.org/2802013002 Cr-Commit-Position: refs/heads/master@{#464199} Committed: https://chromium.googlesource.com/chromium/src/+/bb8dc5c563daf902f09b6f0ab6079d3ec66a089f

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase. #

Patch Set 3 : Fix profile tests. #

Total comments: 11

Patch Set 4 : Simplified ProfileManagerBrowsertest #

Total comments: 2

Patch Set 5 : CompletionInhibitor::Reset() #

Patch Set 6 : Finishing after shutdown is still OK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -93 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_impl.h View 1 2 3 4 7 chunks +10 lines, -30 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_impl.cc View 1 2 3 4 4 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc View 1 2 3 4 5 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_test_util.h View 1 2 3 4 2 chunks +18 lines, -9 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_test_util.cc View 1 2 3 4 5 2 chunks +17 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_manager_browsertest.cc View 1 2 3 3 chunks +18 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_browsertest.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/profile_helper_browsertest.cc View 1 2 3 chunks +7 lines, -27 lines 0 comments Download

Messages

Total messages: 65 (44 generated)
msramek
Hi Bernhard! Can you please have a look at this as well? Sorry for sending ...
3 years, 8 months ago (2017-04-06 12:56:18 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/2802013002/diff/1/chrome/browser/browsing_data/browsing_data_remover.h File chrome/browser/browsing_data/browsing_data_remover.h (right): https://codereview.chromium.org/2802013002/diff/1/chrome/browser/browsing_data/browsing_data_remover.h#newcode138 chrome/browser/browsing_data/browsing_data_remover.h:138: virtual void OnBrowsingDataRemoverWouldComplete( You could consider replacing this with ...
3 years, 8 months ago (2017-04-06 15:13:07 UTC) #3
msramek
https://codereview.chromium.org/2802013002/diff/1/chrome/browser/browsing_data/browsing_data_remover.h File chrome/browser/browsing_data/browsing_data_remover.h (right): https://codereview.chromium.org/2802013002/diff/1/chrome/browser/browsing_data/browsing_data_remover.h#newcode138 chrome/browser/browsing_data/browsing_data_remover.h:138: virtual void OnBrowsingDataRemoverWouldComplete( On 2017/04/06 15:13:07, Bernhard Bauer wrote: ...
3 years, 8 months ago (2017-04-07 10:58:42 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/2802013002/diff/1/chrome/browser/browsing_data/browsing_data_remover.h File chrome/browser/browsing_data/browsing_data_remover.h (right): https://codereview.chromium.org/2802013002/diff/1/chrome/browser/browsing_data/browsing_data_remover.h#newcode138 chrome/browser/browsing_data/browsing_data_remover.h:138: virtual void OnBrowsingDataRemoverWouldComplete( On 2017/04/07 10:58:42, msramek wrote: > ...
3 years, 8 months ago (2017-04-07 15:14:18 UTC) #5
msramek
I addressed your comment, and did a number of other changes, since a recent CL ...
3 years, 8 months ago (2017-04-10 13:20:08 UTC) #15
Bernhard Bauer
https://codereview.chromium.org/2802013002/diff/60001/chrome/browser/browsing_data/browsing_data_remover_test_util.cc File chrome/browser/browsing_data/browsing_data_remover_test_util.cc (right): https://codereview.chromium.org/2802013002/diff/60001/chrome/browser/browsing_data/browsing_data_remover_test_util.cc#newcode39 chrome/browser/browsing_data/browsing_data_remover_test_util.cc:39: // in some tests. So sometimes this class outlives ...
3 years, 8 months ago (2017-04-10 23:29:37 UTC) #20
msramek
https://codereview.chromium.org/2802013002/diff/60001/chrome/browser/browsing_data/browsing_data_remover_test_util.cc File chrome/browser/browsing_data/browsing_data_remover_test_util.cc (right): https://codereview.chromium.org/2802013002/diff/60001/chrome/browser/browsing_data/browsing_data_remover_test_util.cc#newcode39 chrome/browser/browsing_data/browsing_data_remover_test_util.cc:39: // in some tests. On 2017/04/10 23:29:37, Bernhard Bauer ...
3 years, 8 months ago (2017-04-11 13:13:04 UTC) #29
Bernhard Bauer
https://codereview.chromium.org/2802013002/diff/60001/chrome/browser/browsing_data/browsing_data_remover_test_util.cc File chrome/browser/browsing_data/browsing_data_remover_test_util.cc (right): https://codereview.chromium.org/2802013002/diff/60001/chrome/browser/browsing_data/browsing_data_remover_test_util.cc#newcode39 chrome/browser/browsing_data/browsing_data_remover_test_util.cc:39: // in some tests. On 2017/04/11 13:13:03, msramek wrote: ...
3 years, 8 months ago (2017-04-11 15:58:42 UTC) #32
msramek
https://codereview.chromium.org/2802013002/diff/60001/chrome/browser/browsing_data/browsing_data_remover_test_util.cc File chrome/browser/browsing_data/browsing_data_remover_test_util.cc (right): https://codereview.chromium.org/2802013002/diff/60001/chrome/browser/browsing_data/browsing_data_remover_test_util.cc#newcode39 chrome/browser/browsing_data/browsing_data_remover_test_util.cc:39: // in some tests. On 2017/04/11 15:58:41, Bernhard Bauer ...
3 years, 8 months ago (2017-04-11 19:46:19 UTC) #33
Bernhard Bauer
https://codereview.chromium.org/2802013002/diff/60001/chrome/browser/browsing_data/browsing_data_remover_test_util.cc File chrome/browser/browsing_data/browsing_data_remover_test_util.cc (right): https://codereview.chromium.org/2802013002/diff/60001/chrome/browser/browsing_data/browsing_data_remover_test_util.cc#newcode39 chrome/browser/browsing_data/browsing_data_remover_test_util.cc:39: // in some tests. On 2017/04/11 19:46:19, msramek wrote: ...
3 years, 8 months ago (2017-04-12 00:12:55 UTC) #34
msramek
https://codereview.chromium.org/2802013002/diff/60001/chrome/browser/browsing_data/browsing_data_remover_test_util.cc File chrome/browser/browsing_data/browsing_data_remover_test_util.cc (right): https://codereview.chromium.org/2802013002/diff/60001/chrome/browser/browsing_data/browsing_data_remover_test_util.cc#newcode39 chrome/browser/browsing_data/browsing_data_remover_test_util.cc:39: // in some tests. On 2017/04/12 00:12:55, Bernhard Bauer ...
3 years, 8 months ago (2017-04-12 12:18:35 UTC) #40
Bernhard Bauer
Thanks! LGTM with a suggestion: https://codereview.chromium.org/2802013002/diff/100001/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc File chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc (right): https://codereview.chromium.org/2802013002/diff/100001/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc#newcode1494 chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc:1494: completion_inhibitor.ContinueToCompletion(); You could still ...
3 years, 8 months ago (2017-04-12 16:35:34 UTC) #43
msramek
Thanks a lot for your patience, Bernhard :) https://codereview.chromium.org/2802013002/diff/100001/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc File chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc (right): https://codereview.chromium.org/2802013002/diff/100001/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc#newcode1494 chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc:1494: completion_inhibitor.ContinueToCompletion(); ...
3 years, 8 months ago (2017-04-12 19:16:55 UTC) #46
msramek
+Mike PTAL at profiles/. I'm changing how BrowsingDataRemoverCompletionInhibitor works, and as a result I'm updating ...
3 years, 8 months ago (2017-04-12 19:23:05 UTC) #48
Mike Lerman
Happy to rely on Bernhard for profile removal stuff. profiles LGTM
3 years, 8 months ago (2017-04-12 19:28:14 UTC) #50
msramek
Thanks! Landing now.
3 years, 8 months ago (2017-04-12 19:33:39 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2802013002/160001
3 years, 8 months ago (2017-04-12 19:35:39 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/409552)
3 years, 8 months ago (2017-04-12 19:45:41 UTC) #57
msramek
Sorry, forgot that options/OWNERS has noparent set. +Dan, I take the liberty to TBR you, ...
3 years, 8 months ago (2017-04-12 19:50:34 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2802013002/160001
3 years, 8 months ago (2017-04-12 19:51:47 UTC) #62
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 23:17:07 UTC) #65
Message was sent while issue was closed.
Committed patchset #6 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/bb8dc5c563daf902f09b6f0ab607...

Powered by Google App Engine
This is Rietveld 408576698