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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ChildProcessConnectionImpl.java

Issue 2796453003: android: Limit bindToCaller check to webview (Closed)
Patch Set: rebase, removed final from chrome Created 3 years, 8 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: content/public/android/java/src/org/chromium/content/browser/ChildProcessConnectionImpl.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ChildProcessConnectionImpl.java b/content/public/android/java/src/org/chromium/content/browser/ChildProcessConnectionImpl.java
index 64c15b75f6857ff60c91659ee2eddb7563a01474..4499622fe29b6a53d96e8c3e224efb57e03f4a94 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ChildProcessConnectionImpl.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ChildProcessConnectionImpl.java
@@ -176,9 +176,11 @@ public class ChildProcessConnectionImpl implements ChildProcessConnection {
StartCallback startCallback = mStartCallback;
mStartCallback = null;
+ final boolean bindCheck =
+ mCreationParams != null && mCreationParams.getBindToCallerCheck();
boolean boundToUs = false;
try {
- boundToUs = mService.bindToCaller();
+ boundToUs = bindCheck ? mService.bindToCaller() : true;
} catch (RemoteException ex) {
// Do not trigger the StartCallback here, since the service is already
// dead and the DeathCallback will run from onServiceDisconnected().

Powered by Google App Engine
This is Rietveld 408576698