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

Issue 2110483002: Remove use of CanonicalCookie::Source() from browsing_data. (Closed)

Created:
4 years, 5 months ago by mmenke
Modified:
4 years, 5 months ago
CC:
chromium-reviews, Finnur, markusheintz_, msramek+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove use of CanonicalCookie::Source() from browsing_data. Source() is only non-NULL on cookies that have been set since the browser started. Given this weird behavior, we should remove the field entirely, to avoid bugs (See, for instance, https://crbug.com/624004). The main change is that CookieTreeHostNode will now group cookies by the domain they're set on instead of the scheme+domain+port that set them. This was already the behavior for cookies that were loaded from the cookie store, rather than being set since the last browser start, so should not make much difference (Also worth nothing scheme was effectively always http before, since https was replaced with http, setting cookies on file URLs is not allowed, and extension cookies use a different cookie store that bypasses this code). BUG=620770 Committed: https://crrev.com/a1663cdfc27bb767da47200b6093fbccd57ce0b1 Cr-Commit-Position: refs/heads/master@{#404932}

Patch Set 1 #

Patch Set 2 : Update test, too #

Patch Set 3 : Fix #

Patch Set 4 : Merge #

Total comments: 6

Patch Set 5 : Response to comments #

Patch Set 6 : Missed some #

Patch Set 7 : Fix android #

Patch Set 8 : Really fix android #

Patch Set 9 : Really really fix android? #

Total comments: 2

Patch Set 10 : Fix GURL init #

Patch Set 11 : Merge #

Patch Set 12 : Fix merge #

Messages

Total messages: 56 (25 generated)
mmenke
I don't think this breaks anything too badly. I'm going to follow up with a ...
4 years, 5 months ago (2016-06-28 19:54:52 UTC) #3
Mike West
+msramek, just in case, as I'm going to be OOO shortly. https://codereview.chromium.org/2110483002/diff/60001/chrome/browser/browsing_data/cookies_tree_model.cc File chrome/browser/browsing_data/cookies_tree_model.cc (left): ...
4 years, 5 months ago (2016-06-29 05:58:42 UTC) #4
mmenke
I'll respond to your other comments later today. https://codereview.chromium.org/2110483002/diff/60001/chrome/browser/browsing_data/cookies_tree_model.cc File chrome/browser/browsing_data/cookies_tree_model.cc (left): https://codereview.chromium.org/2110483002/diff/60001/chrome/browser/browsing_data/cookies_tree_model.cc#oldcode1232 chrome/browser/browsing_data/cookies_tree_model.cc:1232: if ...
4 years, 5 months ago (2016-06-29 13:02:26 UTC) #5
mmenke
https://codereview.chromium.org/2110483002/diff/60001/chrome/browser/browsing_data/cookies_tree_model.cc File chrome/browser/browsing_data/cookies_tree_model.cc (left): https://codereview.chromium.org/2110483002/diff/60001/chrome/browser/browsing_data/cookies_tree_model.cc#oldcode1223 chrome/browser/browsing_data/cookies_tree_model.cc:1223: if (source.is_empty() || !group_by_cookie_source_) { On 2016/06/29 05:58:42, Mike ...
4 years, 5 months ago (2016-06-30 22:03:43 UTC) #6
mmenke
[+bauerb]: Please review chrome/browser/content_settings/ and chrome/browser/android/preferences/ [+dbeam]: Please review chrome/browser/ui/webui/options/ Note that there's no rush ...
4 years, 5 months ago (2016-06-30 22:25:12 UTC) #8
Dan Beam
lgtm but did you run either the new or old settings UI to see if ...
4 years, 5 months ago (2016-06-30 22:30:05 UTC) #9
mmenke
On 2016/06/30 22:30:05, Dan Beam wrote: > lgtm but did you run either the new ...
4 years, 5 months ago (2016-06-30 23:33:44 UTC) #10
mmenke
On 2016/06/30 23:33:44, mmenke wrote: > On 2016/06/30 22:30:05, Dan Beam wrote: > > lgtm ...
4 years, 5 months ago (2016-06-30 23:34:44 UTC) #11
Bernhard Bauer
LGTM, thanks! https://codereview.chromium.org/2110483002/diff/160001/chrome/browser/browsing_data/cookies_tree_model.cc File chrome/browser/browsing_data/cookies_tree_model.cc (right): https://codereview.chromium.org/2110483002/diff/160001/chrome/browser/browsing_data/cookies_tree_model.cc#newcode1210 chrome/browser/browsing_data/cookies_tree_model.cc:1210: GURL source = GURL(std::string(url::kHttpScheme) + Nit: You ...
4 years, 5 months ago (2016-07-01 13:30:15 UTC) #12
Mike West
LGTM. Thanks for taking another pass!
4 years, 5 months ago (2016-07-02 07:35:44 UTC) #13
mmenke
https://codereview.chromium.org/2110483002/diff/160001/chrome/browser/browsing_data/cookies_tree_model.cc File chrome/browser/browsing_data/cookies_tree_model.cc (right): https://codereview.chromium.org/2110483002/diff/160001/chrome/browser/browsing_data/cookies_tree_model.cc#newcode1210 chrome/browser/browsing_data/cookies_tree_model.cc:1210: GURL source = GURL(std::string(url::kHttpScheme) + On 2016/07/01 13:30:15, Bernhard ...
4 years, 5 months ago (2016-07-11 18:56:59 UTC) #14
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/2110483002/180001
4 years, 5 months ago (2016-07-11 18:57:48 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/33663) ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 5 months ago (2016-07-11 19:02:37 UTC) #19
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/2110483002/200001
4 years, 5 months ago (2016-07-11 19:14:24 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/165532) linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 5 months ago (2016-07-11 19:28:07 UTC) #24
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/2110483002/220001
4 years, 5 months ago (2016-07-11 19:49:29 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/190478)
4 years, 5 months ago (2016-07-11 23:08:50 UTC) #29
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/2110483002/220001
4 years, 5 months ago (2016-07-11 23:11:30 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/190604)
4 years, 5 months ago (2016-07-12 02:33:44 UTC) #33
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/2110483002/220001
4 years, 5 months ago (2016-07-12 02:52:37 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/190833)
4 years, 5 months ago (2016-07-12 06:16:39 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/2110483002/220001
4 years, 5 months ago (2016-07-12 13:11:54 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/191348)
4 years, 5 months ago (2016-07-12 17:18:12 UTC) #41
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/2110483002/220001
4 years, 5 months ago (2016-07-12 17:47:45 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/191524)
4 years, 5 months ago (2016-07-12 20:55:24 UTC) #45
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/2110483002/220001
4 years, 5 months ago (2016-07-12 21:18:22 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/243049)
4 years, 5 months ago (2016-07-12 23:55:44 UTC) #49
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/2110483002/220001
4 years, 5 months ago (2016-07-13 00:12:27 UTC) #51
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 5 months ago (2016-07-13 02:52:07 UTC) #53
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 02:53:04 UTC) #54
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 02:55:32 UTC) #56
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/a1663cdfc27bb767da47200b6093fbccd57ce0b1
Cr-Commit-Position: refs/heads/master@{#404932}

Powered by Google App Engine
This is Rietveld 408576698