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

Unified Diff: content/public/android/java/src/org/chromium/content/app/ChildProcessService.java

Issue 1068363002: Android: Throw exception when child service is reused (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/app/ChildProcessService.java
diff --git a/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java b/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java
index fae9a41007c0aabff9180ea2e6a2f283d219ed3a..d25ac652e7ba8474a3b459aae660b431935d3dd5 100644
--- a/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java
+++ b/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java
@@ -126,7 +126,7 @@ public class ChildProcessService extends Service {
public void onCreate() {
Log.i(TAG, "Creating new ChildProcessService pid=" + Process.myPid());
if (sContext.get() != null) {
- Log.e(TAG, "ChildProcessService created again in process!");
+ throw new RuntimeException("Illegal child process reuse.");
}
sContext.set(this);
super.onCreate();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698