Chromium Code Reviews| Index: content/browser/renderer_host/render_process_host_impl.cc |
| diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
| index 4fb8c880ae41d0bb755c471400c21ea5eb284e46..a86349276f5a409cd409119ef1ce4c4c5cccba5c 100644 |
| --- a/content/browser/renderer_host/render_process_host_impl.cc |
| +++ b/content/browser/renderer_host/render_process_host_impl.cc |
| @@ -198,7 +198,7 @@ |
| #include "ui/native_theme/native_theme_switches.h" |
| #if defined(OS_ANDROID) |
| -#include "content/browser/android/child_process_launcher_android.h" |
| +// #include "content/browser/android/child_process_launcher_android.h" |
|
jam
2017/01/13 18:42:20
nit: remove
Jay Civelli
2017/01/17 17:50:03
Done.
|
| #include "content/browser/screen_orientation/screen_orientation_listener_android.h" |
| #include "content/public/browser/android/java_interfaces.h" |
| #include "ipc/ipc_sync_channel.h" |
| @@ -1939,16 +1939,10 @@ bool RenderProcessHostImpl::Shutdown(int exit_code, bool wait) { |
| if (run_renderer_in_process()) |
| return false; // Single process mode never shuts down the renderer. |
| -#if defined(OS_ANDROID) |
| - // Android requires a different approach for killing. |
| - StopChildProcess(GetHandle()); |
| - return true; |
| -#else |
| - if (!child_process_launcher_.get() || child_process_launcher_->IsStarting()) |
| + if (!child_process_launcher_.get()) |
| return false; |
| - return child_process_launcher_->GetProcess().Terminate(exit_code, wait); |
| -#endif |
| + return child_process_launcher_->Terminate(exit_code, wait); |
| } |
| bool RenderProcessHostImpl::FastShutdownIfPossible() { |