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

Issue 2374443003: Fix content settings's cookie code to work with PlzNavigate. (Closed)

Created:
4 years, 2 months ago by jam
Modified:
4 years, 2 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix content settings's cookie code to work with PlzNavigate. There are two main fixes: -use GetWebContentsGetter instead of the RPH/RFH IDs since the latter don't exist for browser side navigation -switching TabSpecificContentSettings to use the new navigation callbacks. This is needed because with PlzNavigate, the old didstartprovisionalload callback (from the new renderer) would run after the cookie request (from the browser), and so we would wipe out the settings map. Using the new callbacks preserves the order of these callbacks with PlzNavigate. This fixes the following browser tests with PlzNavigate: ContentSettingsTest.RedirectCrossOrigin ContentSettingsTest.RedirectLoopCookies BUG=504347 Committed: https://crrev.com/092d3be76da7c2aef6a84e2791b5818a06cb4689 Cr-Commit-Position: refs/heads/master@{#421224}

Patch Set 1 #

Total comments: 2

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -104 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 3 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/content_settings/content_settings_usages_state_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.h View 4 chunks +22 lines, -24 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 6 chunks +61 lines, -50 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 2 chunks +6 lines, -10 lines 0 comments Download
M components/content_settings/core/browser/content_settings_usages_state.h View 1 chunk +0 lines, -4 lines 0 comments Download
M components/content_settings/core/browser/content_settings_usages_state.cc View 2 chunks +2 lines, -10 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
jam
4 years, 2 months ago (2016-09-26 21:22:46 UTC) #4
Bernhard Bauer
lgtm https://codereview.chromium.org/2374443003/diff/20001/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/2374443003/diff/20001/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode57 chrome/browser/content_settings/tab_specific_content_settings.cc:57: namespace { Nit: empty line after the opening ...
4 years, 2 months ago (2016-09-27 09:27:50 UTC) #11
jam
https://codereview.chromium.org/2374443003/diff/20001/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/2374443003/diff/20001/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode57 chrome/browser/content_settings/tab_specific_content_settings.cc:57: namespace { On 2016/09/27 09:27:49, Bernhard Bauer wrote: > ...
4 years, 2 months ago (2016-09-27 15:05:30 UTC) #12
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/2374443003/40001
4 years, 2 months ago (2016-09-27 15:06:50 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 2 months ago (2016-09-27 15:56:55 UTC) #16
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 15:58:43 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/092d3be76da7c2aef6a84e2791b5818a06cb4689
Cr-Commit-Position: refs/heads/master@{#421224}

Powered by Google App Engine
This is Rietveld 408576698