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

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

Issue 1101473006: Prep for passing fallback descriptor between browser and child processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase from master. Created 5 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 2f783f27f0f90c9cadbaa35963ee752df9ac81cf..495ed5cf5667740f0951a5ae054fe4a52be7233a 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
@@ -76,14 +76,14 @@ public class ChildProcessConnectionImpl implements ChildProcessConnection {
final String[] mCommandLine;
final FileDescriptorInfo[] mFilesToBeMapped;
final IChildProcessCallback mCallback;
- final Bundle mSharedRelros;
+ final Bundle mLinkerSharedState;
ConnectionParams(String[] commandLine, FileDescriptorInfo[] filesToBeMapped,
- IChildProcessCallback callback, Bundle sharedRelros) {
+ IChildProcessCallback callback, Bundle linkerSharedState) {
mCommandLine = commandLine;
mFilesToBeMapped = filesToBeMapped;
mCallback = callback;
- mSharedRelros = sharedRelros;
+ mLinkerSharedState = linkerSharedState;
}
}
@@ -268,7 +268,7 @@ public class ChildProcessConnectionImpl implements ChildProcessConnection {
FileDescriptorInfo[] filesToBeMapped,
IChildProcessCallback processCallback,
ConnectionCallback connectionCallback,
- Bundle sharedRelros) {
+ Bundle linkerSharedState) {
synchronized (mLock) {
assert mConnectionParams == null;
if (mServiceDisconnected) {
@@ -280,7 +280,7 @@ public class ChildProcessConnectionImpl implements ChildProcessConnection {
TraceEvent.begin("ChildProcessConnectionImpl.setupConnection");
mConnectionCallback = connectionCallback;
mConnectionParams = new ConnectionParams(
- commandLine, filesToBeMapped, processCallback, sharedRelros);
+ commandLine, filesToBeMapped, processCallback, linkerSharedState);
// Run the setup if the service is already connected. If not,
// doConnectionSetupLocked() will be called from onServiceConnected().
if (mServiceConnectComplete) {
@@ -352,8 +352,8 @@ public class ChildProcessConnectionImpl implements ChildProcessConnection {
bundle.putInt(EXTRA_CPU_COUNT, CpuFeatures.getCount());
bundle.putLong(EXTRA_CPU_FEATURES, CpuFeatures.getMask());
- bundle.putBundle(Linker.EXTRA_LINKER_SHARED_RELROS,
- mConnectionParams.mSharedRelros);
+ bundle.putBundle(
+ Linker.EXTRA_LINKER_SHARED_STATE, mConnectionParams.mLinkerSharedState);
try {
mPid = mService.setupConnection(bundle, mConnectionParams.mCallback);

Powered by Google App Engine
This is Rietveld 408576698