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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/blacklist_load_analyzer_win.cc

Issue 548843002: Add blacklist initialized state to blacklist bypass reports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/safe_browsing/csd.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/incident_reporting/blacklist_load_analyzer_win.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/blacklist_load_analyzer_win.cc b/chrome/browser/safe_browsing/incident_reporting/blacklist_load_analyzer_win.cc
index 1321ee2d6f127660f2f392cd5ad8fa89febacbee..9da69259204452f4421d79e4ce7372c06ccda896 100644
--- a/chrome/browser/safe_browsing/incident_reporting/blacklist_load_analyzer_win.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/blacklist_load_analyzer_win.cc
@@ -47,6 +47,8 @@ void VerifyBlacklistLoadState(const AddIncidentCallback& callback) {
if (GetLoadedBlacklistedModules(&module_names)) {
PathSanitizer path_sanitizer;
+ const bool blacklist_intialized = blacklist::IsBlacklistInitialized();
+
std::vector<base::string16>::const_iterator module_iter(
module_names.begin());
for (; module_iter != module_names.end(); ++module_iter) {
@@ -61,6 +63,8 @@ void VerifyBlacklistLoadState(const AddIncidentCallback& callback) {
blacklist_load->set_path(base::WideToUTF8(module_path.value()));
// TODO(robertshield): Add computation of file digest and version here.
+ blacklist_load->set_blacklist_initialized(blacklist_intialized);
+
// Send the report.
callback.Run(incident_data.Pass());
}
« no previous file with comments | « no previous file | chrome/common/safe_browsing/csd.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698