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

Issue 5528010: Implement preference and policy based content settings providers. (Closed)

Created:
10 years ago by jochen (gone - plz use gerrit)
Modified:
9 years, 7 months ago
Reviewers:
markusheintz_, gfeher
CC:
chromium-reviews, Paweł Hajdan Jr., ben+cc_chromium.org
Visibility:
Public.

Description

Implement preference and policy based content settings providers. BUG=64753 TEST=*ContentSettings*.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68834

Patch Set 1 #

Total comments: 26

Patch Set 2 : updates #

Total comments: 8

Patch Set 3 : updates #

Patch Set 4 : updates #

Total comments: 1

Patch Set 5 : updates #

Patch Set 6 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1006 lines, -369 lines) Patch
M chrome/browser/content_settings/content_settings_provider.h View 1 2 3 4 5 2 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.h View 1 2 5 chunks +18 lines, -34 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.cc View 1 2 3 4 18 chunks +61 lines, -195 lines 0 comments Download
A chrome/browser/content_settings/host_content_settings_map_unittest.h View 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map_unittest.cc View 3 chunks +1 line, -104 lines 0 comments Download
M chrome/browser/content_settings/mock_content_settings_provider.h View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/content_settings/mock_content_settings_provider.cc View 2 chunks +6 lines, -3 lines 0 comments Download
A chrome/browser/content_settings/policy_content_settings_provider.h View 1 2 3 4 5 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/browser/content_settings/policy_content_settings_provider.cc View 1 2 3 1 chunk +204 lines, -0 lines 0 comments Download
A chrome/browser/content_settings/policy_content_settings_provider_unittest.cc View 1 1 chunk +88 lines, -0 lines 0 comments Download
A chrome/browser/content_settings/pref_content_settings_provider.h View 1 2 3 4 5 1 chunk +88 lines, -0 lines 0 comments Download
A chrome/browser/content_settings/pref_content_settings_provider.cc View 1 2 3 1 chunk +263 lines, -0 lines 0 comments Download
A chrome/browser/content_settings/pref_content_settings_provider_unittest.cc View 1 chunk +124 lines, -0 lines 0 comments Download
M chrome/browser/cookies_tree_model_unittest.cc View 2 chunks +1 line, -24 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jochen (gone - plz use gerrit)
please review
10 years ago (2010-12-08 09:53:10 UTC) #1
gfeher
Here is my first round of comments and questions. http://codereview.chromium.org/5528010/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/5528010/diff/1/chrome/browser/content_settings/host_content_settings_map.cc#newcode411 chrome/browser/content_settings/host_content_settings_map.cc:411: ...
10 years ago (2010-12-08 13:59:17 UTC) #2
markusheintz_
http://codereview.chromium.org/5528010/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/5528010/diff/1/chrome/browser/content_settings/host_content_settings_map.cc#newcode823 chrome/browser/content_settings/host_content_settings_map.cc:823: for (provider_iterator provider = content_settings_providers_.begin(); Theoretically It is possible ...
10 years ago (2010-12-08 14:03:06 UTC) #3
gfeher
http://codereview.chromium.org/5528010/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/5528010/diff/1/chrome/browser/content_settings/host_content_settings_map.h#newcode162 chrome/browser/content_settings/host_content_settings_map.h:162: // This should only be called on the UI ...
10 years ago (2010-12-08 14:13:53 UTC) #4
jochen (gone - plz use gerrit)
http://codereview.chromium.org/5528010/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/5528010/diff/1/chrome/browser/content_settings/host_content_settings_map.cc#newcode411 chrome/browser/content_settings/host_content_settings_map.cc:411: { On 2010/12/08 13:59:17, gfeher wrote: > Why is ...
10 years ago (2010-12-08 14:54:01 UTC) #5
gfeher
http://codereview.chromium.org/5528010/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/5528010/diff/1/chrome/browser/content_settings/host_content_settings_map.cc#newcode418 chrome/browser/content_settings/host_content_settings_map.cc:418: (*provider)->UpdateDefaultSetting(content_type, setting); Ok. http://codereview.chromium.org/5528010/diff/1/chrome/browser/content_settings/policy_content_settings_provider.cc File chrome/browser/content_settings/policy_content_settings_provider.cc (right): http://codereview.chromium.org/5528010/diff/1/chrome/browser/content_settings/policy_content_settings_provider.cc#newcode111 chrome/browser/content_settings/policy_content_settings_provider.cc:111: ...
10 years ago (2010-12-09 10:29:53 UTC) #6
jochen (gone - plz use gerrit)
http://codereview.chromium.org/5528010/diff/1/chrome/browser/content_settings/policy_content_settings_provider.cc File chrome/browser/content_settings/policy_content_settings_provider.cc (right): http://codereview.chromium.org/5528010/diff/1/chrome/browser/content_settings/policy_content_settings_provider.cc#newcode111 chrome/browser/content_settings/policy_content_settings_provider.cc:111: std::string* name = Details<std::string>(details).ptr(); On 2010/12/09 10:29:53, gfeher wrote: ...
10 years ago (2010-12-09 13:18:53 UTC) #7
jochen (gone - plz use gerrit)
updated after offline feedback from Gabor
10 years ago (2010-12-09 15:14:09 UTC) #8
gfeher
10 years ago (2010-12-09 16:09:03 UTC) #9
LGTM with one more issue

http://codereview.chromium.org/5528010/diff/29001/chrome/browser/content_sett...
File chrome/browser/content_settings/host_content_settings_map.cc (right):

http://codereview.chromium.org/5528010/diff/29001/chrome/browser/content_sett...
chrome/browser/content_settings/host_content_settings_map.cc:830:
host_content_settings_.clear();
Please protect this with a lock while you are here.

Powered by Google App Engine
This is Rietveld 408576698