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

Issue 11238034: Added completion notification to Profile's ClearNetworkingHistorySince. (Closed)

Created:
8 years, 2 months ago by engedy
Modified:
8 years, 1 month ago
CC:
chromium-reviews, markusheintz_, darin-cc_chromium.org, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Added completion notification to the call chain from Profile's ClearNetworkingHistorySince() to HttpServerPropertiesManager's Clear(), so now the "Clear Browsing Data" dialog will not close before clearing for this particular component has been completed. Updated the unit test HttpServerPropertiesManagerTest.Clear() to expect a callback, and used existing browser tests to make sure that the delegation of the callback all the way from ClearNetworkingHistorySince() works properly. TBR-ing Jay because of a minor change to TestingProfile, which was required because of a minor change to the Profile interface, which was in turn reviewed by one of the Profile owners. BUG=151615 TBR=jcivelli@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=166016

Patch Set 1 #

Patch Set 2 : Fixed some cosmetic issues #

Patch Set 3 : Missing newline at EOF. #

Total comments: 7

Patch Set 4 : Fixed nits, the important question remains. #

Total comments: 2

Patch Set 5 : Addressed Matt's comments. #

Patch Set 6 : Removed superflous empty line. #

Total comments: 10

Patch Set 7 : Again addressed comments by Matt. #

Patch Set 8 : Factored out MockClosure into base/test. #

Patch Set 9 : Increased similarity threshold... #

Total comments: 6

Patch Set 10 : Fixed nits and naming conflict. #

Patch Set 11 : New line at EOF. #

Patch Set 12 : Similarity threshold problem again... #

Patch Set 13 : Grrrrrrrrr #

Patch Set 14 : Finally. #

Patch Set 15 : Improved working of comments. #

Patch Set 16 : Final touches. #

Total comments: 2

Patch Set 17 : Sorted waiting flags lexicografically. #

Patch Set 18 : Nit. #

Patch Set 19 : Removed MockCallback. #

Patch Set 20 : Super simple callback checking. #

Patch Set 21 : Fixed IO/UI typo and rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -71 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +24 lines, -11 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 14 15 16 17 18 19 20 6 chunks +60 lines, -21 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/net/http_server_properties_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/net/http_server_properties_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +23 lines, -3 lines 0 comments Download
M chrome/browser/net/http_server_properties_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -1 line 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 17 18 19 20 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -1 line 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
engedy
Hey Raman, Will, same issue, new CL (due to Rietveld bug) for adding the callback ...
8 years, 2 months ago (2012-10-22 19:46:34 UTC) #1
engedy
8 years, 2 months ago (2012-10-23 08:09:49 UTC) #2
battre
I think I'll leave the decision on the ProfileImplIOData changes to the OWNERs. http://codereview.chromium.org/11238034/diff/1019/chrome/browser/net/http_server_properties_manager.cc File ...
8 years, 2 months ago (2012-10-23 08:38:32 UTC) #3
engedy
Will, Raman, could you please also take a look? http://codereview.chromium.org/11238034/diff/1019/chrome/browser/net/http_server_properties_manager.cc File chrome/browser/net/http_server_properties_manager.cc (right): http://codereview.chromium.org/11238034/diff/1019/chrome/browser/net/http_server_properties_manager.cc#newcode657 chrome/browser/net/http_server_properties_manager.cc:657: ...
8 years, 2 months ago (2012-10-23 10:40:09 UTC) #4
ramant (doing other things)
http://codereview.chromium.org/11238034/diff/1019/chrome/browser/net/http_server_properties_manager_unittest.cc File chrome/browser/net/http_server_properties_manager_unittest.cc (right): http://codereview.chromium.org/11238034/diff/1019/chrome/browser/net/http_server_properties_manager_unittest.cc#newcode79 chrome/browser/net/http_server_properties_manager_unittest.cc:79: class MockClosure : public base::RefCountedThreadSafe<MockClosure> { +1 to moving ...
8 years, 2 months ago (2012-10-23 23:51:47 UTC) #5
willchan no longer on Chromium
I'm transferring this review to mmenke because I'm overloaded.
8 years, 2 months ago (2012-10-24 23:44:52 UTC) #6
mmenke
A couple high level comments: - I'm a little surprised this issue surfaced. I'd have ...
8 years, 1 month ago (2012-10-25 16:01:15 UTC) #7
engedy
https://codereview.chromium.org/11238034/diff/11004/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/11238034/diff/11004/chrome/browser/browsing_data/browsing_data_remover.cc#newcode500 chrome/browser/browsing_data/browsing_data_remover.cc:500: base::Unretained(this))); On 2012/10/25 16:01:15, Matt Menke wrote: > This ...
8 years, 1 month ago (2012-10-25 19:41:31 UTC) #8
engedy
> - I'm a little surprised this issue surfaced. I'd have thought thought that > ...
8 years, 1 month ago (2012-10-25 19:56:13 UTC) #9
engedy
Matt, can you please take an other look?
8 years, 1 month ago (2012-10-25 20:01:03 UTC) #10
mmenke
On 2012/10/25 19:56:13, engedy wrote: > > - I'm a little surprised this issue surfaced. ...
8 years, 1 month ago (2012-10-25 20:01:28 UTC) #11
mmenke
Only one significant issue. https://codereview.chromium.org/11238034/diff/26002/chrome/browser/net/http_server_properties_manager_unittest.cc File chrome/browser/net/http_server_properties_manager_unittest.cc (right): https://codereview.chromium.org/11238034/diff/26002/chrome/browser/net/http_server_properties_manager_unittest.cc#newcode91 chrome/browser/net/http_server_properties_manager_unittest.cc:91: virtual ~MockClosure() {} nit: friend ...
8 years, 1 month ago (2012-10-25 20:15:52 UTC) #12
engedy
> I was just surprised that we actually "lost" ("won"?) the race with respect to ...
8 years, 1 month ago (2012-10-25 20:18:56 UTC) #13
mmenke
On 2012/10/25 20:18:56, engedy wrote: > > I was just surprised that we actually "lost" ...
8 years, 1 month ago (2012-10-25 20:20:56 UTC) #14
engedy
All done, one more question: Dominic also suggested moving the MockClosure to "chrome/test/base", although I ...
8 years, 1 month ago (2012-10-25 21:47:43 UTC) #15
engedy
Refactored MockClosure into a NewExpectedClosure() function in base/test. Matt, could you please take a final ...
8 years, 1 month ago (2012-10-26 16:27:46 UTC) #16
mmenke
On 2012/10/26 16:27:46, engedy wrote: > Refactored MockClosure into a NewExpectedClosure() function in base/test. > ...
8 years, 1 month ago (2012-10-26 16:29:04 UTC) #17
mmenke
LGTM. I don't really have any strong opinion on where MockClosure lives - Though I ...
8 years, 1 month ago (2012-10-26 19:06:20 UTC) #18
engedy
Mike: Please review the changes in BrowsingDataRemover for owner's approval. Will: Please review the changes ...
8 years, 1 month ago (2012-10-29 14:37:56 UTC) #19
willchan no longer on Chromium
Matt's got the HttpServerPropertiesManager change covered. I'll look at base/test/. On Mon, Oct 29, 2012 ...
8 years, 1 month ago (2012-10-29 17:17:53 UTC) #20
Mike West
On 2012/10/29 14:37:56, engedy wrote: > Mike: Please review the changes in BrowsingDataRemover for owner's ...
8 years, 1 month ago (2012-10-30 10:28:53 UTC) #21
Mike West
http://codereview.chromium.org/11238034/diff/57020/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): http://codereview.chromium.org/11238034/diff/57020/chrome/browser/browsing_data/browsing_data_remover.cc#newcode573 chrome/browser/browsing_data/browsing_data_remover.cc:573: !waiting_for_clear_network_predictor_; Nit: Since you're already touching this, can you ...
8 years, 1 month ago (2012-10-30 10:33:22 UTC) #22
engedy
https://codereview.chromium.org/11238034/diff/57020/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/11238034/diff/57020/chrome/browser/browsing_data/browsing_data_remover.cc#newcode573 chrome/browser/browsing_data/browsing_data_remover.cc:573: !waiting_for_clear_network_predictor_; On 2012/10/30 10:33:22, Mike West (chromium) wrote: > ...
8 years, 1 month ago (2012-10-30 11:01:14 UTC) #23
awong
Drive-by disagreement with MockClosure... I actually do have a rather strong opinion on MockClosure... In ...
8 years, 1 month ago (2012-10-30 19:03:42 UTC) #24
engedy
Philosophically, I tend to disagree with the reasoning about abstraction levels. We are not mocking ...
8 years, 1 month ago (2012-10-30 20:50:39 UTC) #25
awong
Regarding my last paragraph, yeah, I was just highlighting that checking that the callback was ...
8 years, 1 month ago (2012-11-01 19:43:37 UTC) #26
engedy
Yes, I completely agree that adding such an expectation does not help too much. However, ...
8 years, 1 month ago (2012-11-02 10:42:14 UTC) #27
engedy
@Will: given that Matt already reviewed everything except the base/test part, which in turn has ...
8 years, 1 month ago (2012-11-05 13:05:21 UTC) #28
willchan no longer on Chromium
What am I reviewing that Matt hasn't reviewed? He's in all the same OWNERS files ...
8 years, 1 month ago (2012-11-05 15:43:17 UTC) #29
engedy
You are completely right, of course. Apparently, I can't read. :-( On 2012/11/05 15:43:17, willchan ...
8 years, 1 month ago (2012-11-05 16:16:29 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/engedy@chromium.org/11238034/58001
8 years, 1 month ago (2012-11-05 16:23:23 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/engedy@chromium.org/11238034/62004
8 years, 1 month ago (2012-11-05 18:25:25 UTC) #32
commit-bot: I haz the power
8 years, 1 month ago (2012-11-05 20:25:37 UTC) #33
Change committed as 166016

Powered by Google App Engine
This is Rietveld 408576698