Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2498)

Unified Diff: chrome/browser/android/bottombar/overlay_panel_content.cc

Issue 1385663002: [Contextual Search] Add Mojo-enabled API component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed the CS API controller to not be a notification observer. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698