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

Issue 7713034: HostContentSettingsMap refactoring. (Closed)

Created:
9 years, 4 months ago by marja
Modified:
9 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Erik does not do reviews, brettw-cc_chromium.org, mihaip+watch_chromium.org, Aaron Boodman, darin-cc_chromium.org, Paweł Hajdan Jr., markusheintz%chromium.org, jochen (gone - plz use gerrit)
Visibility:
Public.

Description

Modifications to cookie settings. Adding CookieSettings and moving the cookie logic away from HostContentSettingsMap. Making it explicit that the "is cookie session only" decision does not depend on the first party origin. BUG=93335 TEST=CookieSettings.*

Patch Set 1 #

Total comments: 20

Patch Set 2 : Code review comments. #

Patch Set 3 : More code review changes. #

Patch Set 4 : Questionable. Adding a new content type. #

Patch Set 5 : Fixing the previous patch set. #

Total comments: 34

Patch Set 6 : CookieSettings is a ProfileKeyedService. Rebased to trunk. #

Patch Set 7 : Code review comments. #

Total comments: 17

Patch Set 8 : Code review comments. Threading fixes. Mac + win fixes. #

Total comments: 1

Patch Set 9 : Tiny fixes (unnecessary #includes, win + mac fixes). #

Total comments: 16

Patch Set 10 : Code review comments. #

Patch Set 11 : Keeping up to date with trunk. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+981 lines, -528 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +9 lines, -14 lines 0 comments Download
M chrome/browser/chrome_worker_message_filter.h View 1 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_worker_message_filter.cc View 1 2 3 4 5 6 4 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/content_settings/content_settings_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/content_settings_policy_provider.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -1 line 1 comment Download
M chrome/browser/content_settings/content_settings_pref_provider.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -1 line 0 comments Download
A chrome/browser/content_settings/cookie_settings.h View 1 2 3 4 5 6 7 8 9 1 chunk +134 lines, -0 lines 1 comment Download
A chrome/browser/content_settings/cookie_settings.cc View 1 2 3 4 5 6 7 8 9 1 chunk +342 lines, -0 lines 3 comments Download
A chrome/browser/content_settings/cookie_settings_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +179 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.h View 1 2 3 4 5 6 7 8 9 10 7 chunks +3 lines, -41 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.cc View 1 2 3 4 5 6 7 8 9 10 12 chunks +15 lines, -144 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map_unittest.cc View 1 2 3 4 5 6 7 8 9 10 12 chunks +29 lines, -217 lines 0 comments Download
M chrome/browser/cookies_tree_model.h View 1 2 3 4 5 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/cookies_tree_model.cc View 1 2 3 4 5 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/cookies_tree_model_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +24 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_content_settings_api.cc View 1 2 3 4 5 6 7 3 chunks +14 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_content_settings_apitest.cc View 1 2 3 4 5 6 7 3 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_special_storage_policy.h View 1 6 7 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_special_storage_policy.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/net/cookie_policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 7 6 chunks +10 lines, -20 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm View 1 2 3 4 5 6 7 8 9 10 4 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +22 lines, -10 lines 1 comment Download
M chrome/browser/ui/gtk/collected_cookies_gtk.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/collected_cookies_win.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/collected_cookies_ui_delegate.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.h View 1 2 3 4 5 6 7 8 9 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +91 lines, -12 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/content_settings_types.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
marja
Hi Markus, Here's the cl we talked about yesterday. It's... messy. I'm not at all ...
9 years, 4 months ago (2011-08-23 09:14:08 UTC) #1
markusheintz_
Here are some first comments. http://codereview.chromium.org/7713034/diff/1/chrome/browser/content_settings/host_content_settings_map.cc File chrome/browser/content_settings/host_content_settings_map.cc (right): http://codereview.chromium.org/7713034/diff/1/chrome/browser/content_settings/host_content_settings_map.cc#newcode428 chrome/browser/content_settings/host_content_settings_map.cc:428: CookieContentSettings::CookieContentSettings( Please move the ...
9 years, 4 months ago (2011-08-24 12:29:40 UTC) #2
marja
Marking some changes done. Adding the new content setting type (patch set 3) turned out ...
9 years, 4 months ago (2011-08-25 13:56:11 UTC) #3
Bernhard Bauer
http://codereview.chromium.org/7713034/diff/14001/chrome/browser/content_settings/cookie_settings.h File chrome/browser/content_settings/cookie_settings.h (right): http://codereview.chromium.org/7713034/diff/14001/chrome/browser/content_settings/cookie_settings.h#newcode20 chrome/browser/content_settings/cookie_settings.h:20: // cookie-specific logic such as blocking third-party cookies. You ...
9 years, 3 months ago (2011-08-28 19:18:49 UTC) #4
markusheintz_
http://codereview.chromium.org/7713034/diff/14001/chrome/browser/content_settings/content_settings_policy_provider.cc File chrome/browser/content_settings/content_settings_policy_provider.cc (right): http://codereview.chromium.org/7713034/diff/14001/chrome/browser/content_settings/content_settings_policy_provider.cc#newcode52 chrome/browser/content_settings/content_settings_policy_provider.cc:52: CONTENT_SETTINGS_TYPE_COOKIES, You also need to add new policies and ...
9 years, 3 months ago (2011-08-29 08:47:09 UTC) #5
marja
http://codereview.chromium.org/7713034/diff/14001/chrome/browser/ui/webui/options/content_settings_handler.cc File chrome/browser/ui/webui/options/content_settings_handler.cc (right): http://codereview.chromium.org/7713034/diff/14001/chrome/browser/ui/webui/options/content_settings_handler.cc#newcode65 chrome/browser/ui/webui/options/content_settings_handler.cc:65: {CONTENT_SETTINGS_TYPE_COOKIES_SESSION_ONLY, "cookies-session-only"}, On 2011/08/28 19:18:49, Bernhard Bauer wrote: > ...
9 years, 3 months ago (2011-08-30 10:10:38 UTC) #6
markusheintz_
On 2011/08/30 10:10:38, marja wrote: > http://codereview.chromium.org/7713034/diff/14001/chrome/browser/ui/webui/options/content_settings_handler.cc > File chrome/browser/ui/webui/options/content_settings_handler.cc (right): > > http://codereview.chromium.org/7713034/diff/14001/chrome/browser/ui/webui/options/content_settings_handler.cc#newcode65 > ...
9 years, 3 months ago (2011-08-30 10:22:32 UTC) #7
Bernhard Bauer
http://codereview.chromium.org/7713034/diff/14001/chrome/browser/ui/webui/options/content_settings_handler.cc File chrome/browser/ui/webui/options/content_settings_handler.cc (right): http://codereview.chromium.org/7713034/diff/14001/chrome/browser/ui/webui/options/content_settings_handler.cc#newcode65 chrome/browser/ui/webui/options/content_settings_handler.cc:65: {CONTENT_SETTINGS_TYPE_COOKIES_SESSION_ONLY, "cookies-session-only"}, On 2011/08/30 10:10:38, marja wrote: > On ...
9 years, 3 months ago (2011-08-30 11:03:12 UTC) #8
markusheintz_
http://codereview.chromium.org/7713034/diff/14001/chrome/browser/ui/webui/options/content_settings_handler.cc File chrome/browser/ui/webui/options/content_settings_handler.cc (right): http://codereview.chromium.org/7713034/diff/14001/chrome/browser/ui/webui/options/content_settings_handler.cc#newcode65 chrome/browser/ui/webui/options/content_settings_handler.cc:65: {CONTENT_SETTINGS_TYPE_COOKIES_SESSION_ONLY, "cookies-session-only"}, On 2011/08/30 11:03:12, Bernhard Bauer wrote: > ...
9 years, 3 months ago (2011-08-30 11:49:34 UTC) #9
marja
http://codereview.chromium.org/7713034/diff/14001/chrome/browser/content_settings/cookie_settings.h File chrome/browser/content_settings/cookie_settings.h (right): http://codereview.chromium.org/7713034/diff/14001/chrome/browser/content_settings/cookie_settings.h#newcode28 chrome/browser/content_settings/cookie_settings.h:28: bool incognito); On 2011/08/28 19:18:49, Bernhard Bauer wrote: > ...
9 years, 3 months ago (2011-08-30 13:14:07 UTC) #10
Bernhard Bauer
http://codereview.chromium.org/7713034/diff/14001/chrome/browser/content_settings/cookie_settings.h File chrome/browser/content_settings/cookie_settings.h (right): http://codereview.chromium.org/7713034/diff/14001/chrome/browser/content_settings/cookie_settings.h#newcode28 chrome/browser/content_settings/cookie_settings.h:28: bool incognito); On 2011/08/30 13:14:08, marja wrote: > On ...
9 years, 3 months ago (2011-08-30 13:20:25 UTC) #11
marja
http://codereview.chromium.org/7713034/diff/1/chrome/browser/content_settings/host_content_settings_map.h File chrome/browser/content_settings/host_content_settings_map.h (right): http://codereview.chromium.org/7713034/diff/1/chrome/browser/content_settings/host_content_settings_map.h#newcode254 chrome/browser/content_settings/host_content_settings_map.h:254: void MigrateObsoleteCookiePref(); On 2011/08/24 12:29:40, markusheintz_ wrote: > This ...
9 years, 3 months ago (2011-09-01 11:03:19 UTC) #12
Bernhard Bauer
http://codereview.chromium.org/7713034/diff/14001/chrome/browser/content_settings/cookie_settings.h File chrome/browser/content_settings/cookie_settings.h (right): http://codereview.chromium.org/7713034/diff/14001/chrome/browser/content_settings/cookie_settings.h#newcode28 chrome/browser/content_settings/cookie_settings.h:28: bool incognito); On 2011/09/01 11:03:19, marja wrote: > On ...
9 years, 3 months ago (2011-09-01 11:41:54 UTC) #13
marja
Thanks for comments, here are some more changes. http://codereview.chromium.org/7713034/diff/14001/chrome/browser/content_settings/cookie_settings.h File chrome/browser/content_settings/cookie_settings.h (right): http://codereview.chromium.org/7713034/diff/14001/chrome/browser/content_settings/cookie_settings.h#newcode28 chrome/browser/content_settings/cookie_settings.h:28: bool ...
9 years, 3 months ago (2011-09-01 13:34:48 UTC) #14
Bernhard Bauer
http://codereview.chromium.org/7713034/diff/26002/chrome/browser/content_settings/cookie_settings.cc File chrome/browser/content_settings/cookie_settings.cc (right): http://codereview.chromium.org/7713034/diff/26002/chrome/browser/content_settings/cookie_settings.cc#newcode80 chrome/browser/content_settings/cookie_settings.cc:80: ContentSetting setting = GetCookieContentSetting( On 2011/09/01 13:34:48, marja wrote: ...
9 years, 3 months ago (2011-09-01 13:58:49 UTC) #15
marja
Markus & Bernhard, How about *not* fixing the kContentSettingsTypeGroupNames things as a part of this ...
9 years, 3 months ago (2011-09-01 15:17:21 UTC) #16
Bernhard Bauer
I started working on the TODO in this CL and came across a couple of ...
9 years, 3 months ago (2011-09-05 11:05:37 UTC) #17
marja
Thanks for comments again. In addition to the changes here, I renamed CookieSettings::(G|S)etDefaultSetting to CookieSettings::(G|S)etDefaultCookieSettings ...
9 years, 3 months ago (2011-09-06 08:30:15 UTC) #18
Bernhard Bauer
http://codereview.chromium.org/7713034/diff/40001/chrome/browser/content_settings/content_settings_policy_provider.cc File chrome/browser/content_settings/content_settings_policy_provider.cc (right): http://codereview.chromium.org/7713034/diff/40001/chrome/browser/content_settings/content_settings_policy_provider.cc#newcode61 chrome/browser/content_settings/content_settings_policy_provider.cc:61: prefs::kManagedCookiesSessionOnlyForUrls, Wait, this doesn't seem quite right. Some of ...
9 years, 3 months ago (2011-09-14 16:01:35 UTC) #19
marja
Hi and thanks for comments, There is one part of this CL which is getting ...
9 years, 3 months ago (2011-09-20 08:24:02 UTC) #20
Bernhard Bauer
On 2011/09/20 08:24:02, marja wrote: > Hi and thanks for comments, > > There is ...
9 years, 3 months ago (2011-09-20 08:28:22 UTC) #21
marja
9 years, 1 month ago (2011-10-28 10:38:04 UTC) #22
The good parts of this CL got in, see: http://codereview.chromium.org/8383004 .

I'd rather forget the bad and ugly parts, so, closing this codereview.

Powered by Google App Engine
This is Rietveld 408576698