|
[Reland] Refactoring of SBER preference usage, this time without introducing a static initializer in preference_api.
This reverts commit 5ddd173bd9aef153574bbe4639fa190780c65348.
[Original CL description]
Refactoring usage of SBER preference.
Moved (most of) the references of this pref into a shared util file, and
updated
calling code to use it.
The vast majority of the code just cares about whether the opt-in is on
or off.
A handful of other code (mostly unittests) need the name of the pref so
they can
set it.
The primary outliers are 1) profile.cc (where the pref is
first registered by name), and 2) safe_browsing_service.cc (where it
listens for
changes to the pref). These may be handled in future refactoring.
BUG= 653122
Committed: https://crrev.com/cc1c0ce3a7ee43e7f4b87620899c0b7a41d2a9da
Cr-Commit-Position: refs/heads/master@{#426565}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+202 lines, -139 lines) |
Patch |
 |
M |
chrome/browser/android/preferences/pref_service_bridge.cc
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/preference/preference_api.cc
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/interstitials/chrome_controller_client.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/interstitials/security_interstitial_page.h
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/interstitials/security_interstitial_page.cc
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/client_side_detection_host.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/client_side_detection_service.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/download_protection_service.cc
|
View
|
|
5 chunks |
+7 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/download_protection_service_unittest.cc
|
View
|
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
|
View
|
|
7 chunks |
+8 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/local_database_manager.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
|
View
|
|
6 chunks |
+8 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc
|
View
|
1
2
|
18 chunks |
+20 lines, -39 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_service.cc
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/srt_fetcher_win.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/ui_manager.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl/cert_report_helper.cc
|
View
|
|
5 chunks |
+16 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl/certificate_reporting_test_utils.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/download/download_feedback_dialog_view.cc
|
View
|
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/download/download_item_view.cc
|
View
|
|
2 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/common/pref_names.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/pref_names.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/safe_browsing_db/BUILD.gn
|
View
|
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/safe_browsing_db/DEPS
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
components/safe_browsing_db/safe_browsing_prefs.h
|
View
|
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/safe_browsing_db/safe_browsing_prefs.cc
|
View
|
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
Total messages: 52 (32 generated)
|