| Index: chrome/browser/android/bottombar/overlay_panel_content.cc
|
| diff --git a/chrome/browser/android/bottombar/overlay_panel_content.cc b/chrome/browser/android/bottombar/overlay_panel_content.cc
|
| index 300103d204f4ec96f638abe33e5ea86f0d09da02..464cc7f04673fb6bc416e9f73671b540f2e9e0be 100644
|
| --- a/chrome/browser/android/bottombar/overlay_panel_content.cc
|
| +++ b/chrome/browser/android/bottombar/overlay_panel_content.cc
|
| @@ -20,6 +20,7 @@
|
| #include "components/variations/variations_associated_data.h"
|
| #include "components/web_contents_delegate_android/web_contents_delegate_android.h"
|
| #include "content/public/browser/android/content_view_core.h"
|
| +#include "content/public/browser/render_process_host.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "jni/OverlayPanelContent_jni.h"
|
| #include "net/url_request/url_fetcher_impl.h"
|
| @@ -107,11 +108,13 @@ void OverlayPanelContent::SetWebContents(JNIEnv* env,
|
| web_contents_->SetDelegate(web_contents_delegate_.get());
|
| }
|
|
|
| -void OverlayPanelContent::DestroyWebContents(JNIEnv* env, jobject jobj) {
|
| +int OverlayPanelContent::DestroyWebContents(JNIEnv* env, jobject jobj) {
|
| DCHECK(web_contents_.get());
|
| + int host_id = web_contents_->GetRenderProcessHost()->GetID();
|
| web_contents_.reset();
|
| // |web_contents_delegate_| may already be NULL at this point.
|
| web_contents_delegate_.reset();
|
| + return host_id;
|
| }
|
|
|
| void OverlayPanelContent::SetInterceptNavigationDelegate(
|
|
|