diff --git a/patch/patch.cfg b/patch/patch.cfg index b180d6838..e0c3af032 100644 --- a/patch/patch.cfg +++ b/patch/patch.cfg @@ -170,4 +170,10 @@ patches = [ 'name': 'print_header_footer_1478_1565', 'path': '../components/', }, + { + # Remove DCHECK on Linux when initialized CEF from a non-main thread. + # https://bitbucket.org/chromiumembedded/cef/issue/1639 + 'name': 'process_title_1639', + 'path': '../content/common/', + }, ] diff --git a/patch/patches/process_title_1639.patch b/patch/patches/process_title_1639.patch new file mode 100644 index 000000000..5206a7ed5 --- /dev/null +++ b/patch/patches/process_title_1639.patch @@ -0,0 +1,13 @@ +diff --git set_process_title.cc set_process_title.cc +index 229524e..86559f6 100644 +--- set_process_title.cc ++++ set_process_title.cc +@@ -42,7 +42,7 @@ void SetProcessTitleFromCommandLine(const char** main_argv) { + bool have_argv0 = false; + + #if defined(OS_LINUX) +- DCHECK_EQ(base::PlatformThread::CurrentId(), getpid()); ++ //DCHECK_EQ(base::PlatformThread::CurrentId(), getpid()); + + if (main_argv) + setproctitle_init(main_argv);