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

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

Issue 107663008: Chrome browser process DLL blacklist. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix 64-bit tests, static build, address Siggi's nit. 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_3.cc
diff --git a/chrome_elf/chrome_elf_main.cc b/chrome_elf/blacklist/test/blacklist_test_dll_3.cc
similarity index 51%
copy from chrome_elf/chrome_elf_main.cc
copy to chrome_elf/blacklist/test/blacklist_test_dll_3.cc
index 4291430970496b6f13d2aec4113c61ce3c86b286..b4a69590e801adf0daf9e14970dc125c422c2bd1 100644
--- a/chrome_elf/chrome_elf_main.cc
+++ b/chrome_elf/blacklist/test/blacklist_test_dll_3.cc
@@ -4,17 +4,11 @@
#include <windows.h>
-#include "chrome_elf/chrome_elf_main.h"
-
-#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.
-}
+const wchar_t kDll3Beacon[] = L"{9E056AEC-169E-400c-B2D0-5A07E3ACE2EB}";
BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
- if (reason == DLL_PROCESS_ATTACH)
- InitCache();
+ if (reason == DLL_PROCESS_ATTACH) {
+ ::SetEnvironmentVariable(kDll3Beacon, L"1");
+ }
return TRUE;
}
« no previous file with comments | « chrome_elf/blacklist/test/blacklist_test_dll_2.def ('k') | chrome_elf/blacklist/test/blacklist_test_dll_3.lib » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698