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

Unified Diff: chrome_elf/blacklist/test/blacklist_test_dll_2.cc

Issue 118343004: Reland of http://crrev.com/241548. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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_elf/blacklist/test/blacklist_test_dll_2.cc
diff --git a/chrome_elf/chrome_elf_main.cc b/chrome_elf/blacklist/test/blacklist_test_dll_2.cc
similarity index 51%
copy from chrome_elf/chrome_elf_main.cc
copy to chrome_elf/blacklist/test/blacklist_test_dll_2.cc
index 4291430970496b6f13d2aec4113c61ce3c86b286..7a4a7dc49057566d780b7164ea3521a0106b520d 100644
--- a/chrome_elf/chrome_elf_main.cc
+++ b/chrome_elf/blacklist/test/blacklist_test_dll_2.cc
@@ -4,17 +4,16 @@
#include <windows.h>
-#include "chrome_elf/chrome_elf_main.h"
+const wchar_t kDll2Beacon[] = L"{F70A0100-2889-4629-9B44-610FE5C73231}";
-#include "chrome_elf/ntdll_cache.h"
-
-void InitChromeElf() {
- // This method is a no-op which may be called to force a load-time dependency
- // on chrome_elf.dll.
+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) {
- if (reason == DLL_PROCESS_ATTACH)
- InitCache();
+ if (reason == DLL_PROCESS_ATTACH) {
+ ::SetEnvironmentVariable(kDll2Beacon, L"1");
+ }
return TRUE;
}
« no previous file with comments | « chrome_elf/blacklist/test/blacklist_test_dll_1.def ('k') | chrome_elf/blacklist/test/blacklist_test_dll_2.def » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698