[M130 Migration] Disable crashpad initialization 56/320456/2
authorSatyaveer Singh <satyaveer.s@samsung.com>
Mon, 3 Mar 2025 12:15:36 +0000 (17:45 +0530)
committerSatyaveer Singh <satyaveer.s@samsung.com>
Mon, 3 Mar 2025 23:17:44 +0000 (23:17 +0000)
This commit disables the crash reporter.

Reference: https://archive.tizen.org/gerrit/320242/

Change-Id: I22fa3dff737c8c4a4416eeb7d71d5f238659a02d
Signed-off-by: Satyaveer Singh <satyaveer.s@samsung.com>
chrome/app/chrome_main_delegate.cc

index de17f97f68abbd29e4442b49fc243cd98c85bc7b..b33bc0677efddef958c05cc2809380c2d9b1c535 100644 (file)
@@ -1751,7 +1751,7 @@ void ChromeMainDelegate::PreSandboxStartup() {
     } else {
       base::android::InitJavaExceptionReporterForChildProcess();
     }
-#else
+#elif !BUILDFLAG(IS_TIZEN)
     crash_reporter::InitializeCrashpad(process_type.empty(), process_type);
     crash_reporter::SetFirstChanceExceptionHandler(
         v8::TryHandleWebAssemblyTrapPosix);
@@ -1901,9 +1901,11 @@ void ChromeMainDelegate::ZygoteForked() {
       base::CommandLine::ForCurrentProcess();
   std::string process_type =
       command_line->GetSwitchValueASCII(switches::kProcessType);
+#if !BUILDFLAG(IS_TIZEN)
   crash_reporter::InitializeCrashpad(false, process_type);
   crash_reporter::SetFirstChanceExceptionHandler(
       v8::TryHandleWebAssemblyTrapPosix);
+#endif
 
   // Reset the command line for the newly spawned process.
   crash_keys::SetCrashKeysFromCommandLine(*command_line);