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

Issue 551225: Send a message to the renderers when content settings change. (Closed)

Created:
10 years, 10 months ago by Nico
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Send a message to the renderers when content settings change. BUG=32719 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=37788

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Total comments: 16

Patch Set 5 : comments #

Total comments: 14

Patch Set 6 : comments #

Patch Set 7 : green tests? #

Patch Set 8 : rebase, add test #

Total comments: 6

Patch Set 9 : comments #

Patch Set 10 : temporary merge version #

Patch Set 11 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -21 lines) Patch
M chrome/browser/host_content_settings_map.h View 1 2 3 4 5 6 7 8 9 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/host_content_settings_map.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +41 lines, -21 lines 0 comments Download
M chrome/browser/host_content_settings_map_unittest.cc View 8 9 10 3 chunks +63 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 2 3 4 5 3 chunks +21 lines, -0 lines 0 comments Download
M chrome/common/notification_type.h View 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Nico
Could something like this work, or is the approach completely off? (Ignore the changes to ...
10 years, 10 months ago (2010-02-01 07:02:42 UTC) #1
darin (slow to review)
http://codereview.chromium.org/551225/diff/3009/2012 File chrome/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/551225/diff/3009/2012#newcode571 chrome/browser/tab_contents/tab_contents.cc:571: GetURL().host(), content_type); GetURL() returns NavigationEntry::virtual_url(). I think we actually ...
10 years, 10 months ago (2010-02-01 07:12:54 UTC) #2
Nico
http://codereview.chromium.org/551225/diff/3009/2012 File chrome/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/551225/diff/3009/2012#newcode571 chrome/browser/tab_contents/tab_contents.cc:571: GetURL().host(), content_type); On 2010/02/01 07:12:54, darin wrote: > GetURL() ...
10 years, 10 months ago (2010-02-01 07:19:58 UTC) #3
darin (slow to review)
more detailed review this time. mostly just style nits. http://codereview.chromium.org/551225/diff/5002/6003 File chrome/browser/host_content_settings_map.cc (right): http://codereview.chromium.org/551225/diff/5002/6003#newcode130 chrome/browser/host_content_settings_map.cc:130: ...
10 years, 10 months ago (2010-02-01 07:47:42 UTC) #4
Nico
Thanks. http://codereview.chromium.org/551225/diff/5002/6003 File chrome/browser/host_content_settings_map.cc (right): http://codereview.chromium.org/551225/diff/5002/6003#newcode130 chrome/browser/host_content_settings_map.cc:130: NotifyObservers(""); On 2010/02/01 07:47:42, darin wrote: > nit: ...
10 years, 10 months ago (2010-02-01 17:00:49 UTC) #5
Peter Kasting
http://codereview.chromium.org/551225/diff/3011/3015 File chrome/browser/host_content_settings_map.h (right): http://codereview.chromium.org/551225/diff/3011/3015#newcode28 chrome/browser/host_content_settings_map.h:28: // Details for the CONTENT_SETTINGS_CHANGED notification. Nit: It's not ...
10 years, 10 months ago (2010-02-01 18:24:06 UTC) #6
Nico
I can't see the mac unit_test failure on my local box. Maybe it's only visible ...
10 years, 10 months ago (2010-02-01 22:00:27 UTC) #7
Peter Kasting
LGTM
10 years, 10 months ago (2010-02-01 22:17:23 UTC) #8
Nico
On 2010/02/01 22:17:23, Peter Kasting wrote: > LGTM In between 80% stuff, I think I ...
10 years, 10 months ago (2010-02-02 01:02:56 UTC) #9
Peter Kasting
LGTM http://codereview.chromium.org/551225/diff/11009/10004 File chrome/browser/host_content_settings_map.cc (right): http://codereview.chromium.org/551225/diff/11009/10004#newcode196 chrome/browser/host_content_settings_map.cc:196: bool found = all_settings_dictionary->GetDictionaryWithoutPathExpansion( Nit: Line >80 characters? ...
10 years, 10 months ago (2010-02-02 01:11:47 UTC) #10
Nico
10 years, 10 months ago (2010-02-02 01:19:00 UTC) #11
http://codereview.chromium.org/551225/diff/11009/10004
File chrome/browser/host_content_settings_map.cc (right):

http://codereview.chromium.org/551225/diff/11009/10004#newcode196
chrome/browser/host_content_settings_map.cc:196: bool found =
all_settings_dictionary->GetDictionaryWithoutPathExpansion(
On 2010/02/02 01:11:47, Peter Kasting wrote:
> Nit: Line >80 characters?

Done.

http://codereview.chromium.org/551225/diff/11009/10006
File chrome/browser/host_content_settings_map_unittest.cc (right):

http://codereview.chromium.org/551225/diff/11009/10006#newcode7
chrome/browser/host_content_settings_map_unittest.cc:7: #include
"chrome/common/notification_observer.h"
On 2010/02/02 01:11:47, Peter Kasting wrote:
> Nit: The observer and type #includes aren't necessary (the other two #includes
> pull them in)

Done.

http://codereview.chromium.org/551225/diff/11009/10006#newcode51
chrome/browser/host_content_settings_map_unittest.cc:51: private:
On 2010/02/02 01:11:47, Peter Kasting wrote:
> Nit: Blank line before this?

Done. Sorry about doing this wrong twice.

Powered by Google App Engine
This is Rietveld 408576698