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

Issue 298063006: Make SdchManager per-profile. (Closed)

Created:
6 years, 6 months ago by Randy Smith (Not in Mondays)
Modified:
6 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Make SdchManager per-profile. This will both allow SDCH dictionaries to be cached (as they can use the cache associated with the profile) and will provide privacy protection between different profiles (the existing of a dictionary in one profile will not be leaked to another profile). BUG=374914 R=jar@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277160 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277322

Patch Set 1 #

Total comments: 5

Patch Set 2 : Got unit tests running. #

Patch Set 3 : Make access to sdch manager in tests go through an accessor." #

Total comments: 19

Patch Set 4 : Incorporated comments. #

Patch Set 5 : Added const where appropriate. #

Patch Set 6 : Sync'd to r276422. #

Total comments: 1

Patch Set 7 : Remove whitespace before asterix. #

Total comments: 9

Patch Set 8 : Incorporated comments. #

Total comments: 2

Patch Set 9 : Fixed bugs found through smoke testing and incorporated comments. #

Total comments: 2

Patch Set 10 : Removed whitespace. #

Patch Set 11 : New PS based on reverting reversion in c#24 #

Patch Set 12 : Make sure to take and release ownership of second SdchManager. #

Patch Set 13 : Incorporated comments and changed test name. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -311 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/net/sdch_dictionary_fetcher.h View 1 2 3 4 5 6 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/net/sdch_dictionary_fetcher.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +15 lines, -0 lines 0 comments Download
M net/base/sdch_manager.h View 3 chunks +6 lines, -15 lines 0 comments Download
M net/base/sdch_manager.cc View 10 chunks +24 lines, -55 lines 0 comments Download
M net/base/sdch_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 16 chunks +120 lines, -69 lines 0 comments Download
M net/filter/filter.h View 2 chunks +4 lines, -0 lines 0 comments Download
M net/filter/filter.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M net/filter/mock_filter_context.h View 1 2 3 4 4 chunks +10 lines, -0 lines 0 comments Download
M net/filter/mock_filter_context.cc View 1 2 chunks +8 lines, -1 line 0 comments Download
M net/filter/sdch_filter.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M net/filter/sdch_filter.cc View 1 2 3 4 5 6 7 8 9 chunks +17 lines, -10 lines 0 comments Download
M net/filter/sdch_filter_unittest.cc View 1 37 chunks +99 lines, -111 lines 0 comments Download
M net/url_request/url_request_context.h View 3 chunks +10 lines, -0 lines 0 comments Download
M net/url_request/url_request_context.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +19 lines, -25 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
Randy Smith (Not in Mondays)
This CL is dependent on https://codereview.chromium.org/292063002. Jim: Could you give me early feedback on this ...
6 years, 6 months ago (2014-05-26 21:02:28 UTC) #1
jar (doing other things)
Top level comments (before I read the CL): The dictionary fetch was probably initiated in ...
6 years, 6 months ago (2014-05-27 17:14:22 UTC) #2
jar (doing other things)
I looked through the CL... and it all looks reasonable so far. As you do ...
6 years, 6 months ago (2014-05-27 17:53:09 UTC) #3
Randy Smith (Not in Mondays)
On 2014/05/27 17:14:22, jar wrote: > FWIW: Moving to use separate profiles is probably nice... ...
6 years, 6 months ago (2014-06-04 20:39:44 UTC) #4
Randy Smith (Not in Mondays)
> As you do move to having profile-based dictionaries, you should think > about how ...
6 years, 6 months ago (2014-06-04 22:04:52 UTC) #5
Randy Smith (Not in Mondays)
Jim: I think I'm ready for a real review. Things I feel a bit funny ...
6 years, 6 months ago (2014-06-09 18:55:20 UTC) #6
jar (doing other things)
On 2014/06/09 18:55:20, rdsmith wrote: > Jim: I think I'm ready for a real review. ...
6 years, 6 months ago (2014-06-09 22:30:15 UTC) #7
jar (doing other things)
Looks very nice. Small comments below. Thanks! https://codereview.chromium.org/298063006/diff/40001/chrome/browser/net/sdch_dictionary_fetcher.h File chrome/browser/net/sdch_dictionary_fetcher.h (right): https://codereview.chromium.org/298063006/diff/40001/chrome/browser/net/sdch_dictionary_fetcher.h#newcode33 chrome/browser/net/sdch_dictionary_fetcher.h:33: // this ...
6 years, 6 months ago (2014-06-09 23:03:02 UTC) #8
Randy Smith (Not in Mondays)
Thanks for the review! I've tried to address all comments; let me know what you ...
6 years, 6 months ago (2014-06-10 20:38:41 UTC) #9
jar (doing other things)
Just two nits below.... Tell me if I'm still missing something. They are not super ...
6 years, 6 months ago (2014-06-11 20:04:43 UTC) #10
Randy Smith (Not in Mondays)
Jim: Comments incorporated; PTAL. (Fair warning: I'll be doing a rebase and upload to get ...
6 years, 6 months ago (2014-06-11 20:43:38 UTC) #11
jar (doing other things)
LGTM % white-space nit. https://codereview.chromium.org/298063006/diff/100001/chrome/browser/net/sdch_dictionary_fetcher.h File chrome/browser/net/sdch_dictionary_fetcher.h (right): https://codereview.chromium.org/298063006/diff/100001/chrome/browser/net/sdch_dictionary_fetcher.h#newcode62 chrome/browser/net/sdch_dictionary_fetcher.h:62: net::SdchManager * const manager_; nit: ...
6 years, 6 months ago (2014-06-12 15:26:58 UTC) #12
Randy Smith (Not in Mondays)
Jim: Thanks! Matt: Would you review/stamp the chrome/browser/profiles/* files? Scott: Ditto for chrome/browser/* (excluding profiles) ...
6 years, 6 months ago (2014-06-12 15:51:15 UTC) #13
mmenke
https://codereview.chromium.org/298063006/diff/120001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/298063006/diff/120001/chrome/browser/profiles/profile_impl_io_data.cc#newcode534 chrome/browser/profiles/profile_impl_io_data.cc:534: new net::TrivialURLRequestContextGetter( This makes me sad, but doing something ...
6 years, 6 months ago (2014-06-12 16:48:31 UTC) #14
sky
LGTM https://codereview.chromium.org/298063006/diff/120001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/298063006/diff/120001/chrome/browser/browser_process_impl.cc#newcode52 chrome/browser/browser_process_impl.cc:52: #include "chrome/browser/net/sdch_dictionary_fetcher.h" If you can, remove this include.
6 years, 6 months ago (2014-06-12 17:06:22 UTC) #15
Randy Smith (Not in Mondays)
Matt: PTAL? https://codereview.chromium.org/298063006/diff/120001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/298063006/diff/120001/chrome/browser/browser_process_impl.cc#newcode52 chrome/browser/browser_process_impl.cc:52: #include "chrome/browser/net/sdch_dictionary_fetcher.h" On 2014/06/12 17:06:22, sky wrote: ...
6 years, 6 months ago (2014-06-12 18:06:40 UTC) #16
mmenke
Profiles LGTM, though yea, a browser test seems like a good idea. https://codereview.chromium.org/298063006/diff/120001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc ...
6 years, 6 months ago (2014-06-12 18:11:16 UTC) #17
Randy Smith (Not in Mondays)
Thanks, Matt! Jim, I'm afraid I'd like another round of review on PS9; I made ...
6 years, 6 months ago (2014-06-12 20:03:12 UTC) #18
jar (doing other things)
LGTM % white space nit https://codereview.chromium.org/298063006/diff/160001/net/filter/sdch_filter.h File net/filter/sdch_filter.h (right): https://codereview.chromium.org/298063006/diff/160001/net/filter/sdch_filter.h#newcode103 net/filter/sdch_filter.h:103: const URLRequestContext * const ...
6 years, 6 months ago (2014-06-13 18:28:49 UTC) #19
Randy Smith (Not in Mondays)
Thanks! https://codereview.chromium.org/298063006/diff/160001/net/filter/sdch_filter.h File net/filter/sdch_filter.h (right): https://codereview.chromium.org/298063006/diff/160001/net/filter/sdch_filter.h#newcode103 net/filter/sdch_filter.h:103: const URLRequestContext * const url_request_context_; On 2014/06/13 18:28:48, ...
6 years, 6 months ago (2014-06-13 19:40:12 UTC) #20
Randy Smith (Not in Mondays)
The CQ bit was checked by rdsmith@chromium.org
6 years, 6 months ago (2014-06-13 19:40:19 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/298063006/180001
6 years, 6 months ago (2014-06-13 19:41:20 UTC) #22
commit-bot: I haz the power
Change committed as 277160
6 years, 6 months ago (2014-06-14 02:49:17 UTC) #23
viettrungluu
On 2014/06/14 02:49:17, I haz the power (commit-bot) wrote: > Change committed as 277160 Reverted ...
6 years, 6 months ago (2014-06-14 07:20:52 UTC) #24
Randy Smith (Not in Mondays)
Viet-Trung: Willing to give me a stamp for the change made to avoid the leak?
6 years, 6 months ago (2014-06-15 01:59:07 UTC) #25
mmenke
On 2014/06/15 01:59:07, rdsmith wrote: > Viet-Trung: Willing to give me a stamp for the ...
6 years, 6 months ago (2014-06-15 02:50:33 UTC) #26
Randy Smith (Not in Mondays)
On 2014/06/15 02:50:33, mmenke wrote: > On 2014/06/15 01:59:07, rdsmith wrote: > > Viet-Trung: Willing ...
6 years, 6 months ago (2014-06-15 03:06:49 UTC) #27
Randy Smith (Not in Mondays)
On 2014/06/15 03:06:49, rdsmith wrote: > On 2014/06/15 02:50:33, mmenke wrote: > > On 2014/06/15 ...
6 years, 6 months ago (2014-06-15 03:07:24 UTC) #28
mmenke
On 2014/06/15 03:07:24, rdsmith wrote: > On 2014/06/15 03:06:49, rdsmith wrote: > > On 2014/06/15 ...
6 years, 6 months ago (2014-06-15 03:12:36 UTC) #29
mmenke
On 2014/06/15 03:12:36, mmenke wrote: > On 2014/06/15 03:07:24, rdsmith wrote: > > On 2014/06/15 ...
6 years, 6 months ago (2014-06-15 03:13:58 UTC) #30
Randy Smith (Not in Mondays)
On 2014/06/15 03:13:58, mmenke wrote: > On 2014/06/15 03:12:36, mmenke wrote: > > On 2014/06/15 ...
6 years, 6 months ago (2014-06-15 13:20:09 UTC) #31
Randy Smith (Not in Mondays)
The CQ bit was checked by rdsmith@chromium.org
6 years, 6 months ago (2014-06-15 13:20:17 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/298063006/240001
6 years, 6 months ago (2014-06-15 13:20:46 UTC) #33
commit-bot: I haz the power
6 years, 6 months ago (2014-06-15 16:02:30 UTC) #34
Message was sent while issue was closed.
Change committed as 277322

Powered by Google App Engine
This is Rietveld 408576698