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

Unified Diff: chromecast/browser/android/cast_window_android.cc

Issue 773313002: Expose render_process_id to CastShellActivity. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit fixes. Created 6 years 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: chromecast/browser/android/cast_window_android.cc
diff --git a/chromecast/browser/android/cast_window_android.cc b/chromecast/browser/android/cast_window_android.cc
index ef279802cfe084c80607b62916d40f52a267e74d..e53b18521bf0f4979dbaa9577f0d6be138f9025c 100644
--- a/chromecast/browser/android/cast_window_android.cc
+++ b/chromecast/browser/android/cast_window_android.cc
@@ -9,6 +9,7 @@
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
+#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/common/renderer_preferences.h"
#include "jni/CastWindowAndroid_jni.h"
@@ -68,7 +69,8 @@ CastWindowAndroid* CastWindowAndroid::CreateCastWindowAndroid(
web_contents->SetDelegate(shell);
Java_CastWindowAndroid_initFromNativeWebContents(
- env, shell->java_object_.obj(), reinterpret_cast<jint>(web_contents));
+ env, shell->java_object_.obj(), reinterpret_cast<jint>(web_contents),
+ web_contents->GetRenderProcessHost()->GetID());
// Enabling hole-punching also requires runtime renderer preference
web_contents->GetMutableRendererPrefs()->

Powered by Google App Engine
This is Rietveld 408576698