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

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 0505723c5bfe97eb091b25fa12a2851071782f42..101544d9e299081230e3c69d9630ab0fd65c35c5 100644
--- a/chrome/browser/safe_browsing/module_integrity_verifier_win.cc
+++ b/chrome/browser/safe_browsing/module_integrity_verifier_win.cc
@@ -14,6 +14,33 @@
namespace safe_browsing {
+const wchar_t* test_dll_names[kTestDllsMaxCount] = {
csharp 2014/08/05 15:46:33 Same comment about test data (lines 17->28)
krstnmnlsn 2014/08/05 23:07:25 Done.
+ L"verifier_test_dll_1.dll",
+ L"verifier_test_dll_2.dll",
+ NULL,
+};
+
+int TestDllsCount() {
+ int i = 0;
+ while (test_dll_names[i] != NULL)
+ ++i;
+ return i;
+}
+
+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