commit | 80e5f2682839dae70008213499afc85fd4a94156 | [log] [tgz] |
---|---|---|
author | Christian Dullweber <[email protected]> | Tue Aug 25 13:25:22 2020 |
committer | Commit Bot <[email protected]> | Tue Aug 25 13:25:22 2020 |
tree | 0352f0b2c44092e0d19bca10c041a7f8957f9f9b | |
parent | a39032ced8de11c20160176c487885cf9f7da6a9 [diff] [blame] |
Stop using BlockThirdPartyCookies preference in content_settings/ The boolean BlockThirdPartyCookies preference was replaced by CookieControlsMode enum. Existing settings were migrated since M83. The preference is still used in the UI and extension APIs and will be removed in followup CLs. Tbr: [email protected] Bug: 1104836 Change-Id: I44f896c4191af2b49decdc01696f2974b99b9120 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2366721 Commit-Queue: Christian Dullweber <[email protected]> Reviewed-by: Peter Conn <[email protected]> Reviewed-by: Josh Karlin <[email protected]> Reviewed-by: Tsuyoshi Horo <[email protected]> Reviewed-by: Balazs Engedy <[email protected]> Reviewed-by: Ryan Sturm <[email protected]> Reviewed-by: Kamila Hasanbega <[email protected]> Reviewed-by: Maksim Ivanov <[email protected]> Cr-Commit-Position: refs/heads/master@{#801347}
diff --git a/chrome/browser/net/cookie_policy_browsertest.cc b/chrome/browser/net/cookie_policy_browsertest.cc index de6dc9d..f780fba 100644 --- a/chrome/browser/net/cookie_policy_browsertest.cc +++ b/chrome/browser/net/cookie_policy_browsertest.cc
@@ -62,8 +62,11 @@ } void SetBlockThirdPartyCookies(bool value) { - browser()->profile()->GetPrefs()->SetBoolean(prefs::kBlockThirdPartyCookies, - value); + browser()->profile()->GetPrefs()->SetInteger( + prefs::kCookieControlsMode, + static_cast<int>( + value ? content_settings::CookieControlsMode::kBlockThirdParty + : content_settings::CookieControlsMode::kOff)); } void NavigateToPageWithFrame(const std::string& host) {