summaryrefslogtreecommitdiffstats
path: root/chrome/app/chrome_exe_main.cc
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-08 21:21:41 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-08 21:21:41 +0000
commit8f7b2f6b5f2d168cffb2e09e5b6adc1c1d1b6ed8 (patch)
tree54933e0269c39331463d2fd6c5c71ce958f2fddd /chrome/app/chrome_exe_main.cc
parent70992c20e43f53bad0866139b08e2fa6f5b924df (diff)
downloadchromium_src-8f7b2f6b5f2d168cffb2e09e5b6adc1c1d1b6ed8.zip
chromium_src-8f7b2f6b5f2d168cffb2e09e5b6adc1c1d1b6ed8.tar.gz
chromium_src-8f7b2f6b5f2d168cffb2e09e5b6adc1c1d1b6ed8.tar.bz2
EXPERIMENT:
Push breakpad initialization until chrome.dll has already been loaded. This basically currently happens anyway, since loading chrome.dll in the main thread will beat the threaded breakpad initialization. Retrieving the file version information goes from ~4ms to ~1ms if chrome.dll is already loaded. Also move the file version code to the initialization thread. Review URL: http://codereview.chromium.org/10242 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5069 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/chrome_exe_main.cc')
-rw-r--r--chrome/app/chrome_exe_main.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/app/chrome_exe_main.cc b/chrome/app/chrome_exe_main.cc
index 9f21096..2fe33ce 100644
--- a/chrome/app/chrome_exe_main.cc
+++ b/chrome/app/chrome_exe_main.cc
@@ -80,11 +80,12 @@ int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE prev_instance,
delete[] version;
}
+ HINSTANCE dll_handle = ::LoadLibraryEx(dll_name, NULL,
+ LOAD_WITH_ALTERED_SEARCH_PATH);
+
// Initialize the crash reporter.
InitCrashReporter(client_util::GetDLLPath(dll_name, dll_path));
- HINSTANCE dll_handle = ::LoadLibraryEx(dll_name, NULL,
- LOAD_WITH_ALTERED_SEARCH_PATH);
if (NULL != dll_handle) {
client_util::DLL_MAIN entry = reinterpret_cast<client_util::DLL_MAIN>(
::GetProcAddress(dll_handle, "ChromeMain"));