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

Issue 2097043002: Clear HTTP auth data on clearing browsing data (Closed)

Created:
4 years, 6 months ago by Tomasz Moniuszko
Modified:
4 years, 3 months ago
CC:
chromium-reviews, gavinp+disk_chromium.org, kinuko+cache_chromium.org, ramant (doing other things)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear HTTP auth data on clearing cache BUG=108291 Committed: https://crrev.com/053298c3828bff48de45264c8263af6e82d5c354 Cr-Commit-Position: refs/heads/master@{#415919}

Patch Set 1 #

Patch Set 2 : Delete within time period + delete with cookies and passwords #

Total comments: 10

Patch Set 3 : Clear auth data directly from BrowsingDataRemover #

Total comments: 4

Patch Set 4 : Fix review issues #

Total comments: 8

Patch Set 5 : Fix review issues #

Total comments: 2

Patch Set 6 : Add unit tests #

Total comments: 1

Patch Set 7 : Minor unit tests fixes #

Total comments: 6

Patch Set 8 : More unittest fixes #

Total comments: 1

Patch Set 9 : Fixup to HttpAuthCacheTest.ClearEntriesAddedWithin #

Total comments: 2

Patch Set 10 : Replace FRIEND_TEST_ALL_PREFIXES with set_creation_time_for_testing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -6 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 4 5 6 7 8 9 5 chunks +35 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 2 3 4 5 6 7 3 chunks +55 lines, -0 lines 0 comments Download
M net/http/http_auth_cache.h View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -4 lines 0 comments Download
M net/http/http_auth_cache.cc View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M net/http/http_auth_cache_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (11 generated)
Tomasz Moniuszko
@msramek: I know the bug is assigned to you but since I have the fix ...
4 years, 6 months ago (2016-06-24 09:41:56 UTC) #2
msramek
Yep, no worries, I'm happy if you take it :) I was actually looking into ...
4 years, 6 months ago (2016-06-24 13:30:50 UTC) #3
Tomasz Moniuszko
> Furthermore, since HttpAuthCache does have a notion of origins and timestamps, > we should ...
4 years, 5 months ago (2016-06-30 09:03:05 UTC) #6
msramek
https://codereview.chromium.org/2097043002/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/2097043002/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode843 chrome/browser/browsing_data/browsing_data_remover.cc:843: remove_mask & REMOVE_PASSWORDS) { This is not correct. Yes, ...
4 years, 5 months ago (2016-06-30 11:36:20 UTC) #7
Tomasz Moniuszko
https://codereview.chromium.org/2097043002/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/2097043002/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode843 chrome/browser/browsing_data/browsing_data_remover.cc:843: remove_mask & REMOVE_PASSWORDS) { On 2016/06/30 11:36:20, msramek wrote: ...
4 years, 5 months ago (2016-07-01 12:44:02 UTC) #9
msramek
Much better :) I left a few more comments. I'll wait for mmenke@ to comment ...
4 years, 5 months ago (2016-07-01 13:19:40 UTC) #10
Tomasz Moniuszko
https://codereview.chromium.org/2097043002/diff/20001/net/http/http_auth_cache.cc File net/http/http_auth_cache.cc (right): https://codereview.chromium.org/2097043002/diff/20001/net/http/http_auth_cache.cc#newcode259 net/http/http_auth_cache.cc:259: : (delete_begin - base::Time::UnixEpoch()).InMilliseconds(); On 2016/07/01 13:19:40, msramek wrote: ...
4 years, 5 months ago (2016-07-01 14:54:40 UTC) #11
mmenke
[+asanka]: Deferring to asanka on this one. I'm shocked we aren't already doing this, but ...
4 years, 5 months ago (2016-07-12 16:27:11 UTC) #13
msramek
https://codereview.chromium.org/2097043002/diff/60001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/2097043002/diff/60001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode918 chrome/browser/browsing_data/browsing_data_remover.cc:918: if (remove_mask & REMOVE_CACHE || remove_mask & REMOVE_COOKIES || ...
4 years, 5 months ago (2016-07-12 16:52:15 UTC) #15
asanka
https://codereview.chromium.org/2097043002/diff/60001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/2097043002/diff/60001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode918 chrome/browser/browsing_data/browsing_data_remover.cc:918: if (remove_mask & REMOVE_CACHE || remove_mask & REMOVE_COOKIES || ...
4 years, 5 months ago (2016-07-12 17:50:32 UTC) #16
Tomasz Moniuszko
https://codereview.chromium.org/2097043002/diff/60001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/2097043002/diff/60001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode198 chrome/browser/browsing_data/browsing_data_remover.cc:198: http_session->http_auth_cache()->Clear(delete_begin, delete_end); On 2016/07/12 16:27:11, mmenke wrote: > It ...
4 years, 5 months ago (2016-07-15 11:41:34 UTC) #17
Tomasz Moniuszko
ping :) I think I've addressed all the issues raised in the review. Reviewers, does ...
4 years, 4 months ago (2016-07-28 11:59:49 UTC) #18
msramek
LGTM I was actually wondering why we didn't hear from you so long, and now ...
4 years, 4 months ago (2016-07-29 11:18:58 UTC) #19
msramek
Readding mmenke@ for net/, since Asanka is OOO.
4 years, 4 months ago (2016-07-29 11:21:13 UTC) #21
mmenke
HttpAuthCache::Clear needs unit tests (It didn't have them before...but it also looks like it wasn't ...
4 years, 4 months ago (2016-07-29 14:08:48 UTC) #22
Tomasz Moniuszko
On 2016/07/29 14:08:48, mmenke wrote: > HttpAuthCache::Clear needs unit tests (It didn't have them before...but ...
4 years, 4 months ago (2016-08-01 14:26:25 UTC) #23
mmenke
On 2016/08/01 14:26:25, Tomasz Moniuszko wrote: > On 2016/07/29 14:08:48, mmenke wrote: > > HttpAuthCache::Clear ...
4 years, 4 months ago (2016-08-01 14:37:57 UTC) #24
msramek
browsing_data/ still LGTM, thanks for adding the test. Regarding your question about HttpAuthCache::Entry, that's a ...
4 years, 4 months ago (2016-08-01 14:42:38 UTC) #25
mmenke
Adding a path doesn't really seem like a user-visible modification, if I understand how it ...
4 years, 4 months ago (2016-08-02 16:58:38 UTC) #26
mmenke
On 2016/08/02 16:58:38, mmenke wrote: > Adding a path doesn't really seem like a user-visible ...
4 years, 4 months ago (2016-08-02 17:00:52 UTC) #27
Tomasz Moniuszko
On 2016/08/02 16:58:38, mmenke wrote: > Adding a path doesn't really seem like a user-visible ...
4 years, 4 months ago (2016-08-09 11:22:35 UTC) #28
mmenke
https://codereview.chromium.org/2097043002/diff/120001/chrome/browser/browsing_data/browsing_data_remover_unittest.cc File chrome/browser/browsing_data/browsing_data_remover_unittest.cc (right): https://codereview.chromium.org/2097043002/diff/120001/chrome/browser/browsing_data/browsing_data_remover_unittest.cc#newcode852 chrome/browser/browsing_data/browsing_data_remover_unittest.cc:852: class ClearHttpAuthDataTester { Think this makes the tests needlessly ...
4 years, 4 months ago (2016-08-09 14:40:20 UTC) #29
Tomasz Moniuszko
https://codereview.chromium.org/2097043002/diff/120001/chrome/browser/browsing_data/browsing_data_remover_unittest.cc File chrome/browser/browsing_data/browsing_data_remover_unittest.cc (right): https://codereview.chromium.org/2097043002/diff/120001/chrome/browser/browsing_data/browsing_data_remover_unittest.cc#newcode852 chrome/browser/browsing_data/browsing_data_remover_unittest.cc:852: class ClearHttpAuthDataTester { On 2016/08/09 14:40:20, mmenke (busy) wrote: ...
4 years, 3 months ago (2016-08-25 10:33:00 UTC) #30
mmenke
https://codereview.chromium.org/2097043002/diff/140001/net/http/http_auth_cache_unittest.cc File net/http/http_auth_cache_unittest.cc (right): https://codereview.chromium.org/2097043002/diff/140001/net/http/http_auth_cache_unittest.cc#newcode417 net/http/http_auth_cache_unittest.cc:417: cache.ClearEntriesAddedWithin(base::TimeTicks::Now() - start_time); I still don't think this works ...
4 years, 3 months ago (2016-08-25 19:28:02 UTC) #31
Tomasz Moniuszko
On 2016/08/25 19:28:02, mmenke (busy) wrote: > https://codereview.chromium.org/2097043002/diff/140001/net/http/http_auth_cache_unittest.cc > File net/http/http_auth_cache_unittest.cc (right): > > https://codereview.chromium.org/2097043002/diff/140001/net/http/http_auth_cache_unittest.cc#newcode417 ...
4 years, 3 months ago (2016-08-26 09:14:49 UTC) #32
mmenke
On 2016/08/26 09:14:49, Tomasz Moniuszko wrote: > On 2016/08/25 19:28:02, mmenke (busy) wrote: > > ...
4 years, 3 months ago (2016-08-26 14:32:34 UTC) #33
mmenke
On 2016/08/26 14:32:34, mmenke (busy) wrote: > On 2016/08/26 09:14:49, Tomasz Moniuszko wrote: > > ...
4 years, 3 months ago (2016-08-26 14:33:47 UTC) #34
Tomasz Moniuszko
On 2016/08/26 14:33:47, mmenke wrote: > I'm fine with any of these solutions - I'm ...
4 years, 3 months ago (2016-08-31 11:22:12 UTC) #35
mmenke
LGTM! Thanks for fixing this! https://codereview.chromium.org/2097043002/diff/160001/net/http/http_auth_cache.h File net/http/http_auth_cache.h (right): https://codereview.chromium.org/2097043002/diff/160001/net/http/http_auth_cache.h#newcode67 net/http/http_auth_cache.h:67: FRIEND_TEST_ALL_PREFIXES(HttpAuthCacheTest, ClearEntriesAddedWithin); Suggest a ...
4 years, 3 months ago (2016-08-31 14:48:32 UTC) #36
Tomasz Moniuszko
https://codereview.chromium.org/2097043002/diff/160001/net/http/http_auth_cache.h File net/http/http_auth_cache.h (right): https://codereview.chromium.org/2097043002/diff/160001/net/http/http_auth_cache.h#newcode67 net/http/http_auth_cache.h:67: FRIEND_TEST_ALL_PREFIXES(HttpAuthCacheTest, ClearEntriesAddedWithin); On 2016/08/31 14:48:32, mmenke wrote: > Suggest ...
4 years, 3 months ago (2016-09-01 08:40:01 UTC) #37
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/2097043002/180001
4 years, 3 months ago (2016-09-01 08:40:35 UTC) #40
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 3 months ago (2016-09-01 09:41:49 UTC) #42
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 09:43:50 UTC) #44
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/053298c3828bff48de45264c8263af6e82d5c354
Cr-Commit-Position: refs/heads/master@{#415919}

Powered by Google App Engine
This is Rietveld 408576698