diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc index d06c0569f312df0073ae840b75ade16775277664..22167c4cbfb8741b0e4a2377cb4cf53e5f44acf6 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()) {