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

Issue 8383004: Adding CookieSettings for storing cookie content settings. (Closed)

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

Description

Adding CookieSettings for storing cookie content settings. Moving cookie-spesific logic from HostContentSettingsMap to CookieSettings. Making it explicit that the "is cookie session only" decision only depends on the primary url. Also removes the migration code for the obsolete kCookieBehavior preference. BUG=93335 TEST=CookieSettings.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107705

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : Cleanup. #

Patch Set 11 : . #

Total comments: 34

Patch Set 12 : Code review. #

Total comments: 4

Patch Set 13 : Code review. #

Patch Set 14 : Cleanup. #

Patch Set 15 : Rebased. #

Patch Set 16 : Fixing the rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+842 lines, -574 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +9 lines, -15 lines 0 comments Download
M chrome/browser/chrome_worker_message_filter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_worker_message_filter.cc View 1 2 3 4 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/content_settings/content_settings_browsertest.cc View 1 3 chunks +5 lines, -4 lines 0 comments Download
A chrome/browser/content_settings/cookie_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +151 lines, -0 lines 0 comments Download
A chrome/browser/content_settings/cookie_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +250 lines, -0 lines 0 comments Download
A chrome/browser/content_settings/cookie_settings_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +233 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 11 12 13 14 8 chunks +14 lines, -45 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 11 12 13 14 12 chunks +15 lines, -171 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 11 12 13 14 12 chunks +28 lines, -222 lines 0 comments Download
M chrome/browser/content_settings/mock_settings_observer.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cookies_tree_model.h View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/cookies_tree_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/cookies_tree_model_unittest.cc View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_content_settings_api.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -2 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 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 9 10 11 12 13 14 3 chunks +9 lines, -12 lines 0 comments Download
M chrome/browser/extensions/extension_special_storage_policy_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +10 lines, -14 lines 0 comments Download
M chrome/browser/net/cookie_policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 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 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 6 chunks +10 lines, -20 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm View 4 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model.cc View 3 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/ui/gtk/collected_cookies_gtk.cc View 1 2 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 4 chunks +6 lines, -5 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 5 chunks +6 lines, -5 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 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 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
marja
Hi, This CL contains some parts from http://codereview.chromium.org/7713034 . This CL adds the CookieSettings frontend ...
9 years, 2 months ago (2011-10-25 12:20:24 UTC) #1
Bernhard Bauer
http://codereview.chromium.org/8383004/diff/5101/chrome/browser/content_settings/cookie_settings.cc File chrome/browser/content_settings/cookie_settings.cc (right): http://codereview.chromium.org/8383004/diff/5101/chrome/browser/content_settings/cookie_settings.cc#newcode53 chrome/browser/content_settings/cookie_settings.cc:53: static Factory* GetInstance(); You're probably going to have to ...
9 years, 2 months ago (2011-10-25 13:11:20 UTC) #2
Bernhard Bauer
http://codereview.chromium.org/8383004/diff/5101/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): http://codereview.chromium.org/8383004/diff/5101/chrome/browser/profiles/profile_io_data.h#newcode105 chrome/browser/profiles/profile_io_data.h:105: CookieSettings* GetCookieSettings() const; Where is this method actually called?
9 years, 2 months ago (2011-10-25 13:14:23 UTC) #3
marja
Thanks for comments, I also noticed some leftover code in HostContentSettingsMap (SetBlockThirdPartyCookies, BlockThirdPartyCookies, Observe) and ...
9 years, 1 month ago (2011-10-26 13:03:21 UTC) #4
Bernhard Bauer
http://codereview.chromium.org/8383004/diff/5101/chrome/browser/content_settings/cookie_settings.h File chrome/browser/content_settings/cookie_settings.h (right): http://codereview.chromium.org/8383004/diff/5101/chrome/browser/content_settings/cookie_settings.h#newcode100 chrome/browser/content_settings/cookie_settings.h:100: void SetCookieSetting(const ContentSettingsPattern& primary_pattern, On 2011/10/26 13:03:21, marja wrote: ...
9 years, 1 month ago (2011-10-26 13:24:09 UTC) #5
marja
http://codereview.chromium.org/8383004/diff/5101/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): http://codereview.chromium.org/8383004/diff/5101/chrome/browser/profiles/profile_io_data.h#newcode105 chrome/browser/profiles/profile_io_data.h:105: CookieSettings* GetCookieSettings() const; On 2011/10/26 13:24:09, Bernhard Bauer wrote: ...
9 years, 1 month ago (2011-10-27 08:48:51 UTC) #6
Bernhard Bauer
LGTM. http://codereview.chromium.org/8383004/diff/5101/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): http://codereview.chromium.org/8383004/diff/5101/chrome/browser/profiles/profile_io_data.h#newcode105 chrome/browser/profiles/profile_io_data.h:105: CookieSettings* GetCookieSettings() const; On 2011/10/27 08:48:51, marja wrote: ...
9 years, 1 month ago (2011-10-27 09:27:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/8383004/20038
9 years, 1 month ago (2011-10-27 09:30:32 UTC) #8
commit-bot: I haz the power
Presubmit check for 8383004-20038 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 1 month ago (2011-10-27 09:30:43 UTC) #9
marja
Oops, OWNERS check. {mirandac,battre}: Could you review the following parts: mirandac: (Changes: In addition to ...
9 years, 1 month ago (2011-10-27 09:39:27 UTC) #10
marja
On 2011/10/27 09:39:27, marja wrote: > Oops, OWNERS check. > > {mirandac,battre}: Could you review ...
9 years, 1 month ago (2011-10-27 09:40:01 UTC) #11
battre
LGTM @ chrome/browser/net/cookie_policy_browsertest.cc
9 years, 1 month ago (2011-10-27 13:23:46 UTC) #12
Miranda Callahan
On 2011/10/27 13:23:46, battre wrote: > LGTM @ chrome/browser/net/cookie_policy_browsertest.cc LGTM for profiles/*
9 years, 1 month ago (2011-10-27 14:57:46 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/8383004/20038
9 years, 1 month ago (2011-10-28 06:52:53 UTC) #14
commit-bot: I haz the power
Can't apply patch for file chrome/browser/content_settings/tab_specific_content_settings.cc. While running patch -p1 --forward --force; patching file chrome/browser/content_settings/tab_specific_content_settings.cc ...
9 years, 1 month ago (2011-10-28 06:53:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/8383004/28001
9 years, 1 month ago (2011-10-28 08:21:53 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/8383004/31001
9 years, 1 month ago (2011-10-28 08:52:45 UTC) #17
commit-bot: I haz the power
9 years, 1 month ago (2011-10-28 09:49:08 UTC) #18
Change committed as 107705

Powered by Google App Engine
This is Rietveld 408576698