|
Use ThreadChecker rather than DCHECK_CURRENTLY_ON.
This is to remove the code dependency on //content/ so that more
content_settings files can be in components/content_settings/core.
At the first glance, it may look like adding a new restriction
that HostContentSettingsMap has to be initialized on UI thread.
However, this doesn't change any conditions. Actually, that
restriction already exists on the current code implicitly on:
- HostContentSettingsMap creates OverrideProvider
- OverrideProvider ctor calls ReadOverrideSettings
- ReadOverrideSettings assumes called on UI thread
So this CL simply moves the thread checking.
BUG= 384876
R=bauerb@chromium.org, vabr@chromium.org, rlp@chromium.org, rocket@chromium.org, phajdan.jr@chromium.org
TEST=no breaks on existing tests
Committed: https://crrev.com/a1aa3518032217fd605d9435a31fc2b6c4e5e3f9
Cr-Commit-Position: refs/heads/master@{#300733}
Total comments: 6
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+49 lines, -83 lines) |
Patch |
 |
M |
chrome/browser/content_settings/content_settings_default_provider.cc
|
View
|
1
2
3
4
|
4 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/content_settings/content_settings_default_provider_unittest.cc
|
View
|
|
1 chunk |
+1 line, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/content_settings/content_settings_internal_extension_provider.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/content_settings/content_settings_override_provider.h
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/content_settings/content_settings_override_provider.cc
|
View
|
1
2
3
4
|
3 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/content_settings/content_settings_policy_provider.cc
|
View
|
|
4 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/content_settings/content_settings_policy_provider_unittest.cc
|
View
|
|
6 chunks |
+6 lines, -23 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/content_settings/content_settings_pref_provider.cc
|
View
|
|
6 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/content_settings/content_settings_pref_provider_unittest.cc
|
View
|
1
2
3
4
|
9 chunks |
+8 lines, -21 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/content_settings/host_content_settings_map.h
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/content_settings/host_content_settings_map.cc
|
View
|
3
|
5 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/content_settings/host_content_settings_map_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_service.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/off_the_record_profile_impl.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_impl.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/base/testing_profile.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/content_settings/core/browser/content_settings_observable_provider.h
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/content_settings/core/browser/content_settings_observable_provider.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
Total messages: 37 (9 generated)
|