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

Unified Diff: chrome_elf/chrome_redirects_main.cc

Issue 169093007: Modify fileAtPath stat to track if the call was redirected by chrome_elf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 10 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
« no previous file with comments | « chrome_elf/chrome_redirects.def ('k') | chrome_elf/create_file/chrome_create_file.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_elf/chrome_redirects_main.cc
diff --git a/chrome_elf/blacklist/test/blacklist_test_dll_1.cc b/chrome_elf/chrome_redirects_main.cc
similarity index 56%
copy from chrome_elf/blacklist/test/blacklist_test_dll_1.cc
copy to chrome_elf/chrome_redirects_main.cc
index a4e414d5210db7babf43c67996dbeec7e3944480..8d1b871d40b770e75731cd49655885b5d8f30fbc 100644
--- a/chrome_elf/blacklist/test/blacklist_test_dll_1.cc
+++ b/chrome_elf/chrome_redirects_main.cc
@@ -1,9 +1,14 @@
-// Copyright 2013 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>
-
-BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
- 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>
+
+#include "chrome_elf/ntdll_cache.h"
+
+BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
+ if (reason == DLL_PROCESS_ATTACH)
+ InitCache();
+
+ return TRUE;
+}
« no previous file with comments | « chrome_elf/chrome_redirects.def ('k') | chrome_elf/create_file/chrome_create_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698