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

Unified Diff: base/android/java/src/org/chromium/base/library_loader/ProcessInitException.java

Issue 152663002: Remove shim classes etc. that were needed to move Android Loader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moveLibraryLoader
Patch Set: Rebase to landed versions of predecessor CLs. Created 6 years, 10 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: base/android/java/src/org/chromium/base/library_loader/ProcessInitException.java
diff --git a/base/android/java/src/org/chromium/base/library_loader/ProcessInitException.java b/base/android/java/src/org/chromium/base/library_loader/ProcessInitException.java
index d7f82fb44703f948925452f8c8bf9c69e4f1c57c..106667536d0bd40de7a97835d676ddf84311cffc 100644
--- a/base/android/java/src/org/chromium/base/library_loader/ProcessInitException.java
+++ b/base/android/java/src/org/chromium/base/library_loader/ProcessInitException.java
@@ -6,16 +6,15 @@ package org.chromium.base.library_loader;
/**
* The exception that is thrown when the intialization of a process was failed.
- * TODO (aberent) the real code of this has to stay in
- * org.chromium.content.common.ProcessInitException until the downstream Android
- * code has switched to using this class.
*/
-public class ProcessInitException extends org.chromium.content.common.ProcessInitException {
+public class ProcessInitException extends Exception {
+ private int mErrorCode = LoaderErrors.LOADER_ERROR_NORMAL_COMPLETION;
+
/**
* @param errorCode This will be one of the LoaderErrors error codes.
*/
public ProcessInitException(int errorCode) {
- super(errorCode);
+ mErrorCode = errorCode;
}
/**
@@ -23,6 +22,14 @@ public class ProcessInitException extends org.chromium.content.common.ProcessIni
* @param throwable The wrapped throwable obj.
*/
public ProcessInitException(int errorCode, Throwable throwable) {
- super(errorCode, throwable);
+ super(null, throwable);
+ mErrorCode = errorCode;
+ }
+
+ /**
+ * Return the error code.
+ */
+ public int getErrorCode() {
+ return mErrorCode;
}
}

Powered by Google App Engine
This is Rietveld 408576698