diff options
Diffstat (limited to 'chrome/app/chrome_main.cc')
-rw-r--r-- | chrome/app/chrome_main.cc | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc index 5f678fd..15020d5 100644 --- a/chrome/app/chrome_main.cc +++ b/chrome/app/chrome_main.cc @@ -123,22 +123,6 @@ bool LoadMemoryProfiler() { return prof_module != NULL; } -#pragma optimize("", off) - -// Handlers to silently dump the current process when there is an assert in -// chrome. -void ChromeAssert(const std::string& str) { - // Get the breakpad pointer from chrome.exe - typedef void (__cdecl *DumpProcessFunction)(); - DumpProcessFunction DumpProcess = reinterpret_cast<DumpProcessFunction>( - ::GetProcAddress(::GetModuleHandle(chrome::kBrowserProcessExecutableName), - "DumpProcess")); - if (DumpProcess) - DumpProcess(); -} - -#pragma optimize("", on) - // Early versions of Chrome incorrectly registered a chromehtml: URL handler, // which gives us nothing but trouble. Avoid launching chrome this way since // some apps fail to properly escape arguments. @@ -705,15 +689,6 @@ int ChromeMain(int argc, char** argv) { // done in all processes that work with these URLs (i.e. including renderers). chrome::RegisterChromeSchemes(); -#ifdef NDEBUG - if (command_line.HasSwitch(switches::kSilentDumpOnDCHECK) && - command_line.HasSwitch(switches::kEnableDCHECK)) { -#if defined(OS_WIN) - logging::SetLogReportHandler(ChromeAssert); -#endif - } -#endif // NDEBUG - if (SubprocessNeedsResourceBundle(process_type)) { // Initialize ResourceBundle which handles files loaded from external // sources. The language should have been passed in to us from the |