summaryrefslogtreecommitdiffstats
path: root/chrome_elf/blacklist
diff options
context:
space:
mode:
authorcaitkp <caitkp@chromium.org>2015-05-11 15:00:27 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-11 22:01:29 +0000
commit78d41b5d4e59dc7d52d7e7d6530fdd0a78b36d33 (patch)
treedcbc14e2e03ef6834158e1ca51a5a1f061b60556 /chrome_elf/blacklist
parent1912f4a4c9126ed44b1d660cb4451be204738433 (diff)
downloadchromium_src-78d41b5d4e59dc7d52d7e7d6530fdd0a78b36d33.zip
chromium_src-78d41b5d4e59dc7d52d7e7d6530fdd0a78b36d33.tar.gz
chromium_src-78d41b5d4e59dc7d52d7e7d6530fdd0a78b36d33.tar.bz2
Cache IsNonBrowserProcess values, so we only take a loader-lock the first time.
BUG=485656,477137 Review URL: https://codereview.chromium.org/1132473003 Cr-Commit-Position: refs/heads/master@{#329246}
Diffstat (limited to 'chrome_elf/blacklist')
-rw-r--r--chrome_elf/blacklist/test/blacklist_test_main_dll.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome_elf/blacklist/test/blacklist_test_main_dll.cc b/chrome_elf/blacklist/test/blacklist_test_main_dll.cc
index 54e5eb8..beb9894 100644
--- a/chrome_elf/blacklist/test/blacklist_test_main_dll.cc
+++ b/chrome_elf/blacklist/test/blacklist_test_main_dll.cc
@@ -5,11 +5,13 @@
#include <windows.h>
#include "chrome_elf/blacklist/blacklist.h"
+#include "chrome_elf/chrome_elf_util.h"
extern "C" void InitBlacklistTestDll() {}
BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
if (reason == DLL_PROCESS_ATTACH) {
+ InitializeProcessType();
blacklist::Initialize(true); // force always on, no beacon
}