summaryrefslogtreecommitdiffstats
path: root/chrome/app/chrome_exe_main.cc
diff options
context:
space:
mode:
authorrahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-29 23:58:10 +0000
committerrahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-29 23:58:10 +0000
commit4522cfd1ec9feba623eee66116e2aeda4081198e (patch)
tree9edf7953640b0cc016eee15602d451f124915161 /chrome/app/chrome_exe_main.cc
parent5daa269e3d3c10e9169f7c4ec23cc218f3ea5347 (diff)
downloadchromium_src-4522cfd1ec9feba623eee66116e2aeda4081198e.zip
chromium_src-4522cfd1ec9feba623eee66116e2aeda4081198e.tar.gz
chromium_src-4522cfd1ec9feba623eee66116e2aeda4081198e.tar.bz2
Initialize Breakpad for Chromium as well.
BU=1296800 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1572 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/chrome_exe_main.cc')
-rw-r--r--chrome/app/chrome_exe_main.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/app/chrome_exe_main.cc b/chrome/app/chrome_exe_main.cc
index 7804626..3bf6439 100644
--- a/chrome/app/chrome_exe_main.cc
+++ b/chrome/app/chrome_exe_main.cc
@@ -78,14 +78,19 @@ int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE prev_instance,
wchar_t exe_path[MAX_PATH] = {0};
client_util::GetExecutablePath(exe_path);
wchar_t *version;
+ std::wstring dll_path;
if (client_util::GetChromiumVersion(exe_path, L"Software\\Chromium",
&version)) {
- std::wstring dll_path(exe_path);
+ dll_path = exe_path;
dll_path.append(version);
if (client_util::FileExists(dll_path.c_str()))
::SetCurrentDirectory(dll_path.c_str());
delete[] version;
}
+
+ // 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) {