Commit 8554f92b authored by robertshield's avatar robertshield Committed by Commit bot

Add blacklist initialized state to blacklist bypass reports.

BUG=394352
TEST=NONE

Review URL: https://codereview.chromium.org/548843002

Cr-Commit-Position: refs/heads/master@{#293853}
parent b6ae4d0e
...@@ -47,6 +47,8 @@ void VerifyBlacklistLoadState(const AddIncidentCallback& callback) { ...@@ -47,6 +47,8 @@ void VerifyBlacklistLoadState(const AddIncidentCallback& callback) {
if (GetLoadedBlacklistedModules(&module_names)) { if (GetLoadedBlacklistedModules(&module_names)) {
PathSanitizer path_sanitizer; PathSanitizer path_sanitizer;
const bool blacklist_intialized = blacklist::IsBlacklistInitialized();
std::vector<base::string16>::const_iterator module_iter( std::vector<base::string16>::const_iterator module_iter(
module_names.begin()); module_names.begin());
for (; module_iter != module_names.end(); ++module_iter) { for (; module_iter != module_names.end(); ++module_iter) {
...@@ -61,6 +63,8 @@ void VerifyBlacklistLoadState(const AddIncidentCallback& callback) { ...@@ -61,6 +63,8 @@ void VerifyBlacklistLoadState(const AddIncidentCallback& callback) {
blacklist_load->set_path(base::WideToUTF8(module_path.value())); blacklist_load->set_path(base::WideToUTF8(module_path.value()));
// TODO(robertshield): Add computation of file digest and version here. // TODO(robertshield): Add computation of file digest and version here.
blacklist_load->set_blacklist_initialized(blacklist_intialized);
// Send the report. // Send the report.
callback.Run(incident_data.Pass()); callback.Run(incident_data.Pass());
} }
......
...@@ -359,6 +359,7 @@ message ClientIncidentReport { ...@@ -359,6 +359,7 @@ message ClientIncidentReport {
optional string path = 1; optional string path = 1;
optional ClientDownloadRequest.Digests digest = 2; optional ClientDownloadRequest.Digests digest = 2;
optional string version = 3; optional string version = 3;
optional bool blacklist_initialized = 4;
} }
optional int64 incident_time_msec = 1; optional int64 incident_time_msec = 1;
optional TrackedPreferenceIncident tracked_preference = 2; optional TrackedPreferenceIncident tracked_preference = 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment