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

Issue 651023: Pass in the HostContentSettingsMap to the CookieModalDialog so IsValid can ma... (Closed)

Created:
10 years, 10 months ago by jorlow
Modified:
9 years, 6 months ago
CC:
chromium-reviews, brettw+cc_chromium.org, darin+cc_chromium.org, jam, ben+cc_chromium.org
Visibility:
Public.

Description

Pass in the HostContentSettingsMap to the CookieModalDialog so IsValid can make its decision. Before, it used the TabContents to get the profile to get the map, but this was incorrect because the current tab isn't necessarily from the same profile as the original request. As long as we have the HostContentSettingsMap, we might as well handle "remember" in CookieModalDialog. This bug exists in 4.1. TEST=none BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=39558

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -94 lines) Patch
M chrome/browser/cookie_modal_dialog.h View 1 2 3 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/cookie_modal_dialog.cc View 1 2 3 4 4 chunks +25 lines, -8 lines 0 comments Download
M chrome/browser/cookie_prompt_modal_dialog_delegate.h View 1 2 3 1 chunk +4 lines, -6 lines 0 comments Download
M chrome/browser/in_process_webkit/dom_storage_permission_request.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/in_process_webkit/dom_storage_permission_request.cc View 1 2 3 1 chunk +14 lines, -23 lines 0 comments Download
M chrome/browser/message_box_handler.h View 1 2 3 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/message_box_handler.cc View 1 2 3 1 chunk +9 lines, -4 lines 0 comments Download
M chrome/browser/net/chrome_cookie_policy.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/net/chrome_cookie_policy.cc View 1 2 3 2 chunks +16 lines, -25 lines 0 comments Download
M chrome/browser/renderer_host/database_permission_request.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/database_permission_request.cc View 1 2 3 2 chunks +10 lines, -17 lines 0 comments Download
M chrome/browser/views/cookie_prompt_view.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/cookie_prompt_view.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
jorlow
10 years, 10 months ago (2010-02-19 11:40:27 UTC) #1
sky
LGTM http://codereview.chromium.org/651023/diff/1/10 File chrome/browser/cookie_modal_dialog.h (right): http://codereview.chromium.org/651023/diff/1/10#newcode32 chrome/browser/cookie_modal_dialog.h:32: HostContentSettingsMap* host_content_settings_map, Can you forward declare HostContentSettingsMap? http://codereview.chromium.org/651023/diff/1/10#newcode79 ...
10 years, 10 months ago (2010-02-19 16:07:38 UTC) #2
jorlow
New version uploaded. http://codereview.chromium.org/651023/diff/1/10 File chrome/browser/cookie_modal_dialog.h (right): http://codereview.chromium.org/651023/diff/1/10#newcode32 chrome/browser/cookie_modal_dialog.h:32: HostContentSettingsMap* host_content_settings_map, On 2010/02/19 16:07:38, sky ...
10 years, 10 months ago (2010-02-19 16:34:46 UTC) #3
darin (slow to review)
10 years, 10 months ago (2010-02-19 17:54:25 UTC) #4
LGTM, except:

http://codereview.chromium.org/651023/diff/22/1031
File chrome/browser/net/chrome_cookie_policy.cc (right):

http://codereview.chromium.org/651023/diff/22/1031#newcode45
chrome/browser/net/chrome_cookie_policy.cc:45: NotifyDone(session_expire ?
net::OK_FOR_SESSION_ONLY : net::OK);
this will not compile on linux/mac because GCC will complain that these are from
separate enums, which they are.  you'll need to use the code as it was.

Powered by Google App Engine
This is Rietveld 408576698