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

Issue 1814543002: Fix callsites to URLRequestContext::CopyFrom (Closed)

Created:
4 years, 9 months ago by nharper
Modified:
4 years, 7 months ago
Reviewers:
mmenke, mattm
CC:
chromium-reviews, grt+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix callsites to URLRequestContext::CopyFrom If URLRequestContext::CopyFrom is called and the CookieStore is changed, there will be two URLRequestContexts sharing the same ChannelIDService but using different CookieStores. Since the CookieStore could have channel-bound cookies, a new ChannelIDService should be created and used as well. Unfortunately, calling URLRequestContext::set_channel_id_service after URLRequestContext::set_cookie_store isn't enough: the ChannelIDService is also used in creating the HttpNetworkSession and HttpTransactionFactory. BUG=291417, 548423 Committed: https://crrev.com/e7b7bcddfe9e709ab316f85548d140c4c2090847 Cr-Commit-Position: refs/heads/master@{#390403}

Patch Set 1 #

Patch Set 2 : Fix safe browsing request context when there's no HttpTransactionFactory #

Patch Set 3 : rebase #

Patch Set 4 : Add browser tests #

Total comments: 4

Patch Set 5 : refactor checks to happen on IO thread #

Patch Set 6 : rebase; s/scoped_ptr/std::unique_ptr/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -14 lines) Patch
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 1 chunk +13 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_browsertest.cc View 1 2 3 4 2 chunks +131 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 3 chunks +25 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 4 5 6 chunks +47 lines, -11 lines 0 comments Download

Messages

Total messages: 34 (14 generated)
nharper
4 years, 9 months ago (2016-03-16 23:49:56 UTC) #2
mmenke
This is going to take a bit of digging to figure out the full ramifications ...
4 years, 9 months ago (2016-03-17 18:53:41 UTC) #3
mmenke
On 2016/03/17 18:53:41, mmenke wrote: > This is going to take a bit of digging ...
4 years, 9 months ago (2016-03-18 16:02:02 UTC) #4
nharper
BUG= line updated.
4 years, 9 months ago (2016-03-18 17:16:27 UTC) #6
mmenke
On 2016/03/18 17:16:27, nharper wrote: > BUG= line updated. Sorry for the delay. I think ...
4 years, 9 months ago (2016-03-22 18:39:49 UTC) #7
nharper
On 2016/03/22 18:39:49, mmenke wrote: > On 2016/03/18 17:16:27, nharper wrote: > > BUG= line ...
4 years, 9 months ago (2016-03-22 21:53:00 UTC) #8
mmenke
On 2016/03/22 21:53:00, nharper wrote: > On 2016/03/22 18:39:49, mmenke wrote: > > On 2016/03/18 ...
4 years, 9 months ago (2016-03-22 23:05:44 UTC) #9
mmenke
On 2016/03/22 23:05:44, mmenke wrote: > On 2016/03/22 21:53:00, nharper wrote: > > On 2016/03/22 ...
4 years, 9 months ago (2016-03-23 15:10:11 UTC) #10
nharper
Updated to have browser tests. I'm having a problem that the tests are very flaky. ...
4 years, 8 months ago (2016-04-21 00:27:31 UTC) #16
nharper
On 2016/04/21 00:27:31, nharper wrote: > Updated to have browser tests. > > I'm having ...
4 years, 8 months ago (2016-04-21 18:54:18 UTC) #17
mmenke
Ahh, sorry, forgot about this one. Bunch of reviews last week. I'll try to get ...
4 years, 8 months ago (2016-04-26 18:58:27 UTC) #18
mmenke
LGTM, modulo comments. Thanks for doing this! Comments apply to both tests, of course. Sorry ...
4 years, 8 months ago (2016-04-27 02:28:47 UTC) #19
nharper
https://codereview.chromium.org/1814543002/diff/160001/chrome/browser/profiles/profile_browsertest.cc File chrome/browser/profiles/profile_browsertest.cc (right): https://codereview.chromium.org/1814543002/diff/160001/chrome/browser/profiles/profile_browsertest.cc#newcode498 chrome/browser/profiles/profile_browsertest.cc:498: CHECK(main_context); On 2016/04/27 02:28:47, mmenke wrote: > We'd crash ...
4 years, 7 months ago (2016-04-27 22:25:44 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814543002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814543002/180001
4 years, 7 months ago (2016-04-27 22:28:59 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/174322)
4 years, 7 months ago (2016-04-27 22:38:16 UTC) #25
nharper
mattm, can you review chrome/browser/safe_browsing/safe_browsing_service.cc?
4 years, 7 months ago (2016-04-27 23:46:00 UTC) #26
mattm
lgtm
4 years, 7 months ago (2016-04-28 01:56:43 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814543002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814543002/200001
4 years, 7 months ago (2016-04-28 15:40:15 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:200001)
4 years, 7 months ago (2016-04-28 16:26:44 UTC) #32
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:19:08 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e7b7bcddfe9e709ab316f85548d140c4c2090847
Cr-Commit-Position: refs/heads/master@{#390403}

Powered by Google App Engine
This is Rietveld 408576698