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

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

Issue 657163004: Fix Java indentation issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java b/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java
index e12f13aedbd932b7e54ffbf4f589e011568d3129..26f479144f43fab913a96733248e703ccda6ef4f 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java
@@ -161,16 +161,16 @@ public class ChildProcessLauncher {
private static ChildProcessConnection allocateConnection(Context context,
boolean inSandbox, ChromiumLinkerParams chromiumLinkerParams) {
ChildProcessConnection.DeathCallback deathCallback =
- new ChildProcessConnection.DeathCallback() {
- @Override
- public void onChildProcessDied(ChildProcessConnection connection) {
- if (connection.getPid() != 0) {
- stop(connection.getPid());
- } else {
- freeConnection(connection);
+ new ChildProcessConnection.DeathCallback() {
+ @Override
+ public void onChildProcessDied(ChildProcessConnection connection) {
+ if (connection.getPid() != 0) {
+ stop(connection.getPid());
+ } else {
+ freeConnection(connection);
+ }
}
- }
- };
+ };
sConnectionAllocated = true;
return getConnectionAllocator(inSandbox).allocate(context, deathCallback,
chromiumLinkerParams);
@@ -266,8 +266,7 @@ public class ChildProcessLauncher {
private static void unregisterSurfaceTextureSurface(int surfaceTextureId, int clientId) {
Pair<Integer, Integer> key = new Pair<Integer, Integer>(surfaceTextureId, clientId);
Surface surface = sSurfaceTextureSurfaceMap.remove(key);
- if (surface == null)
- return;
+ if (surface == null) return;
assert surface.isValid();
surface.release();
@@ -291,8 +290,8 @@ public class ChildProcessLauncher {
Surface surface = sSurfaceTextureSurfaceMap.get(key);
if (surface == null) {
- Log.e(TAG, "Invalid Id for surface texture.");
- return null;
+ Log.e(TAG, "Invalid Id for surface texture.");
+ return null;
}
assert surface.isValid();
return new SurfaceWrapper(surface);
@@ -554,7 +553,7 @@ public class ChildProcessLauncher {
};
}
- static void logPidWarning(int pid, String message) {
+ static void logPidWarning(int pid, String message) {
// This class is effectively a no-op in single process mode, so don't log warnings there.
if (pid > 0 && !nativeIsSingleProcess()) {
Log.w(TAG, message + ", pid=" + pid);

Powered by Google App Engine
This is Rietveld 408576698