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

Unified Diff: chrome/browser/safe_browsing/module_integrity_verifier_win.cc

Issue 440753002: The incident reporting service now calls VerifyModule. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
Index: chrome/browser/safe_browsing/module_integrity_verifier_win.cc
diff --git a/chrome/browser/safe_browsing/module_integrity_verifier_win.cc b/chrome/browser/safe_browsing/module_integrity_verifier_win.cc
index 8d6b7b10f1a0c73ba4735ad91a3c72fce96a0948..a3420d78011cdb4afb5a1c7d0440dcdf57f87195 100644
--- a/chrome/browser/safe_browsing/module_integrity_verifier_win.cc
+++ b/chrome/browser/safe_browsing/module_integrity_verifier_win.cc
@@ -13,6 +13,20 @@
namespace safe_browsing {
+const wchar_t* modules_to_verify[kModulesToVerifyMaxCount] = {
+ L"chrome.dll",
+ L"chrome_elf.dll",
+ L"ntdll.dll",
+ NULL,
+};
+
+int ModulesToVerifyCount() {
+ int i = 0;
+ while (modules_to_verify[i] != NULL)
+ ++i;
+ return i;
+}
+
struct ModuleVerificationState {
explicit ModuleVerificationState(HMODULE hModule);
~ModuleVerificationState();

Powered by Google App Engine
This is Rietveld 408576698