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

Unified Diff: chrome/browser/safe_browsing/verifier_test/verifier_test_dll.cc

Issue 406043003: Adding the VerifyModule function (and helpers) to safe browsing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebasing 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/verifier_test/verifier_test_dll.cc
diff --git a/chrome_elf/chrome_redirects_main.cc b/chrome/browser/safe_browsing/verifier_test/verifier_test_dll.cc
similarity index 65%
copy from chrome_elf/chrome_redirects_main.cc
copy to chrome/browser/safe_browsing/verifier_test/verifier_test_dll.cc
index 960d07c8806d668315bc2e10f9d89f056c37c0a6..e0ad0d061a7d657c61f094dcfb8ae35436bcfcc7 100644
--- a/chrome_elf/chrome_redirects_main.cc
+++ b/chrome/browser/safe_browsing/verifier_test/verifier_test_dll.cc
@@ -1,14 +1,15 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <windows.h>
-
-#include "chrome_elf/ntdll_cache.h"
-
-BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
- if (reason == DLL_PROCESS_ATTACH)
- InitCache();
-
- return TRUE;
-}
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include <windows.h>
+
+extern "C" {
+// Have a dummy export so that the module gets an export table entry.
+void DummyExport() {
+}
+}
+
+BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
+ return true;
+}

Powered by Google App Engine
This is Rietveld 408576698