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

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

Issue 2795913003: [Merge m58] android: Limit bindToCaller check to webview (Closed)
Patch Set: remove 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 764d52ce0d473d7de83a87881bfc3aadaeb80036..f142fca34bc62c8e9bfe40e45df4f2d0b4ea3790 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