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

Issue 1694063002: Use GURLS instead of patterns in SetCookieSetting() (Closed)

Created:
4 years, 10 months ago by lshang
Modified:
4 years, 9 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, msramek+watch_chromium.org, raymes+watch_chromium.org, chromium-apps-reviews_chromium.org, markusheintz_, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@scoping_set_content_setting
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use GURLS instead of patterns in SetCookieSetting() A new version SetContentSettingDefaultScope() is made to use GURLs instead of patterns. The patterns are determined by WebsiteSettingsInfo::ScopingType from the ContentSettingsType. In this CL, SetCookieSetting() is changed to use GURLs instead of patterns as parameters and it will call SetContentSettingDefaultScope() internally. For special test cases, use SetContentSetting() to pass in specific patterns. BUG=551747 Committed: https://crrev.com/b1a182cafba0902104512f93e641617e9b15ba18 Cr-Commit-Position: refs/heads/master@{#382728}

Patch Set 1 #

Patch Set 2 : fix bug #

Patch Set 3 : rebase #

Patch Set 4 : fix bug #

Patch Set 5 : rebase #

Patch Set 6 : split changes to resetCookieSetting to another CL #

Patch Set 7 : fix bugs in tests #

Patch Set 8 : fix bug in android #

Total comments: 6

Patch Set 9 : Add SetCookieException to handle custom patterns #

Total comments: 4

Patch Set 10 : minor change #

Total comments: 11

Patch Set 11 : rebase #

Patch Set 12 : address review commnents #

Patch Set 13 : rebase #

Patch Set 14 : remove unused patterns #

Messages

Total messages: 38 (14 generated)
lshang
PTAL thanks!
4 years, 9 months ago (2016-03-16 01:07:05 UTC) #9
raymes
https://codereview.chromium.org/1694063002/diff/210001/chrome/browser/android/preferences/website_preference_bridge.cc File chrome/browser/android/preferences/website_preference_bridge.cc (right): https://codereview.chromium.org/1694063002/diff/210001/chrome/browser/android/preferences/website_preference_bridge.cc#newcode477 chrome/browser/android/preferences/website_preference_bridge.cc:477: std::string(), setting); I wonder if we should add a ...
4 years, 9 months ago (2016-03-16 03:24:11 UTC) #10
lshang
Raymes, could you PTAL again? Thanks! https://codereview.chromium.org/1694063002/diff/210001/chrome/browser/android/preferences/website_preference_bridge.cc File chrome/browser/android/preferences/website_preference_bridge.cc (right): https://codereview.chromium.org/1694063002/diff/210001/chrome/browser/android/preferences/website_preference_bridge.cc#newcode477 chrome/browser/android/preferences/website_preference_bridge.cc:477: std::string(), setting); On ...
4 years, 9 months ago (2016-03-17 01:53:59 UTC) #11
raymes
lgtm with nits https://codereview.chromium.org/1694063002/diff/230001/components/content_settings/core/browser/cookie_settings.cc File components/content_settings/core/browser/cookie_settings.cc (right): https://codereview.chromium.org/1694063002/diff/230001/components/content_settings/core/browser/cookie_settings.cc#newcode109 components/content_settings/core/browser/cookie_settings.cc:109: DCHECK(secondary_pattern == ContentSettingsPattern::Wildcard()); DCHECK_EQ(..., ...); https://codereview.chromium.org/1694063002/diff/230001/components/content_settings/core/browser/cookie_settings.cc#newcode110 ...
4 years, 9 months ago (2016-03-17 04:21:29 UTC) #12
lshang
Thanks Raymes! https://codereview.chromium.org/1694063002/diff/230001/components/content_settings/core/browser/cookie_settings.cc File components/content_settings/core/browser/cookie_settings.cc (right): https://codereview.chromium.org/1694063002/diff/230001/components/content_settings/core/browser/cookie_settings.cc#newcode109 components/content_settings/core/browser/cookie_settings.cc:109: DCHECK(secondary_pattern == ContentSettingsPattern::Wildcard()); On 2016/03/17 04:21:29, raymes ...
4 years, 9 months ago (2016-03-17 08:49:53 UTC) #13
lshang
+OWNER bauerb@: please review changes in chrome/browser/android/ and chrome/browser/browsing_data benwells@: please review changes in chrome/browser/extensions ...
4 years, 9 months ago (2016-03-17 08:55:19 UTC) #15
Bernhard Bauer
The code changes mostly look good, but the existing code seems strange to me. Finnur, ...
4 years, 9 months ago (2016-03-17 09:52:27 UTC) #17
agl
LGTM for chrome/browser/net.
4 years, 9 months ago (2016-03-17 09:58:46 UTC) #18
Finnur
https://codereview.chromium.org/1694063002/diff/250001/chrome/browser/android/preferences/website_preference_bridge.cc File chrome/browser/android/preferences/website_preference_bridge.cc (right): https://codereview.chromium.org/1694063002/diff/250001/chrome/browser/android/preferences/website_preference_bridge.cc#newcode470 chrome/browser/android/preferences/website_preference_bridge.cc:470: if (value == -1) { All I remember is ...
4 years, 9 months ago (2016-03-17 10:40:54 UTC) #19
Bernhard Bauer
https://codereview.chromium.org/1694063002/diff/250001/chrome/browser/android/preferences/website_preference_bridge.cc File chrome/browser/android/preferences/website_preference_bridge.cc (right): https://codereview.chromium.org/1694063002/diff/250001/chrome/browser/android/preferences/website_preference_bridge.cc#newcode470 chrome/browser/android/preferences/website_preference_bridge.cc:470: if (value == -1) { On 2016/03/17 10:40:54, Finnur ...
4 years, 9 months ago (2016-03-17 16:04:47 UTC) #20
Bernhard Bauer
https://codereview.chromium.org/1694063002/diff/250001/chrome/browser/android/preferences/website_preference_bridge.cc File chrome/browser/android/preferences/website_preference_bridge.cc (right): https://codereview.chromium.org/1694063002/diff/250001/chrome/browser/android/preferences/website_preference_bridge.cc#newcode470 chrome/browser/android/preferences/website_preference_bridge.cc:470: if (value == -1) { On 2016/03/17 16:04:46, Bernhard ...
4 years, 9 months ago (2016-03-17 16:11:58 UTC) #21
raymes
I just did some digging in the code. I wonder if we pull on the ...
4 years, 9 months ago (2016-03-20 23:35:20 UTC) #22
lshang
https://codereview.chromium.org/1694063002/diff/250001/chrome/browser/android/preferences/website_preference_bridge.cc File chrome/browser/android/preferences/website_preference_bridge.cc (right): https://codereview.chromium.org/1694063002/diff/250001/chrome/browser/android/preferences/website_preference_bridge.cc#newcode467 chrome/browser/android/preferences/website_preference_bridge.cc:467: ContentSettingsPattern::FromURLNoWildcard(url)); On 2016/03/17 09:52:27, Bernhard Bauer wrote: > This ...
4 years, 9 months ago (2016-03-21 00:57:02 UTC) #23
benwells
c/b/e lgtm
4 years, 9 months ago (2016-03-21 06:04:04 UTC) #24
Bernhard Bauer
On 2016/03/20 23:35:20, raymes wrote: > I just did some digging in the code. I ...
4 years, 9 months ago (2016-03-21 09:03:17 UTC) #25
Bernhard Bauer
https://codereview.chromium.org/1694063002/diff/250001/chrome/browser/android/preferences/website_preference_bridge.cc File chrome/browser/android/preferences/website_preference_bridge.cc (right): https://codereview.chromium.org/1694063002/diff/250001/chrome/browser/android/preferences/website_preference_bridge.cc#newcode467 chrome/browser/android/preferences/website_preference_bridge.cc:467: ContentSettingsPattern::FromURLNoWildcard(url)); On 2016/03/21 00:57:02, Liu Shang wrote: > On ...
4 years, 9 months ago (2016-03-21 09:03:27 UTC) #26
Finnur
Rietveld is broken for me at the moment -- won't let me answer comments in ...
4 years, 9 months ago (2016-03-21 10:58:40 UTC) #27
lshang
On 2016/03/21 09:03:17, Bernhard Bauer wrote: > On 2016/03/20 23:35:20, raymes wrote: > > I ...
4 years, 9 months ago (2016-03-22 05:38:49 UTC) #28
lshang
On 2016/03/21 10:58:40, Finnur wrote: > Rietveld is broken for me at the moment -- ...
4 years, 9 months ago (2016-03-22 05:41:26 UTC) #29
Finnur
No problem. Happy to help. And thank you, Liu. :) On Tue, Mar 22, 2016 ...
4 years, 9 months ago (2016-03-22 10:36:05 UTC) #30
Bernhard Bauer
LGTM!
4 years, 9 months ago (2016-03-22 10:37:52 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1694063002/330001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1694063002/330001
4 years, 9 months ago (2016-03-22 23:27:18 UTC) #34
commit-bot: I haz the power
Committed patchset #14 (id:330001)
4 years, 9 months ago (2016-03-22 23:32:41 UTC) #36
commit-bot: I haz the power
4 years, 9 months ago (2016-03-22 23:34:16 UTC) #38
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/b1a182cafba0902104512f93e641617e9b15ba18
Cr-Commit-Position: refs/heads/master@{#382728}

Powered by Google App Engine
This is Rietveld 408576698