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

Unified Diff: chrome/split_dll_fake_entry.cc

Issue 19572013: reland of http://crrev.com/212230 Create top-level separate targets for... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix delegate dispatch and test gyp deps Created 7 years, 5 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/installer/mini_installer_syzygy.gyp ('k') | components/autofill.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/split_dll_fake_entry.cc
diff --git a/chrome/split_dll_fake_entry.cc b/chrome/split_dll_fake_entry.cc
deleted file mode 100644
index 8b3f07832b853f8732efb17a4b53a53db9dc8350..0000000000000000000000000000000000000000
--- a/chrome/split_dll_fake_entry.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// 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>
-
-extern "C" {
-
-// This entry point and file is used to work around circular dependencies
-// between the split DLLs. The CRT initialization will fail if done at attach
-// time. Instead, we defer initialization until after both DLLs are loaded and
-// then manually call the CRT initialization function (via DoDeferredCrtInit).
-//
-// ChromeEmptyEntry is the DLL's entry point.
-
-BOOL WINAPI _DllMainCRTStartup(HINSTANCE, DWORD, LPVOID);
-
-BOOL WINAPI ChromeEmptyEntry(HINSTANCE hinstance,
- DWORD reason,
- LPVOID reserved) {
- // We are going to do the 'process attach initialization manually via
- // DoDeferredCrtInit but we need to let the DLL_THREAD_ATTACH calls work.
- if (reason == DLL_PROCESS_ATTACH)
- return 1;
- return _DllMainCRTStartup(hinstance, reason, reserved);
-}
-
-__declspec(dllexport) BOOL __stdcall DoDeferredCrtInit(HINSTANCE hinstance) {
- return _DllMainCRTStartup(hinstance, DLL_PROCESS_ATTACH, NULL);
-}
-
-// This function is needed for the linker to succeed. It seems to pick the
-// CRT lib based on the existence of "DllMain", and since we're renaming that,
-// it instead chooses the one that links against "main". This function should
-// never be called.
-int main() {
- __debugbreak();
-}
-
-}
« no previous file with comments | « chrome/installer/mini_installer_syzygy.gyp ('k') | components/autofill.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698