From 7f5de0af96c7054393c9ac324c45bff91168f4fe Mon Sep 17 00:00:00 2001 From: slim Date: Thu, 12 Dec 2024 10:15:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E8=BF=9B=E7=A8=8B?= =?UTF-8?q?=E6=A6=82=E7=8E=87kill=E4=B8=8D=E4=BA=86=E7=A9=BA=E9=97=B2?= =?UTF-8?q?=E8=BF=9B=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: slim --- content/browser/renderer_host/render_process_host_impl.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc index d06c0569f3..22167c4cbf 100644 --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc @@ -3804,9 +3804,14 @@ bool RenderProcessHostImpl::FastShutdownIfPossible(size_t page_count, bool skip_unload_handlers) { // Do not shut down the process if there are active or pending views other // than the ones we're shutting down. +#ifdef OHOS_RENDER_PROCESS_MODE if (page_count && page_count != (GetActiveViewCount() + pending_views_)) { - LOG(INFO) << "Discard failed; there are active or pending views"; + LOG(DEBUG) << "Discard success; there are active or pending views"; + return true; +#else + LOG(DEBUG) << "Discard failed; there are active or pending views"; return false; +#endif } if (run_renderer_in_process()) { -- Gitee