| Index: content/public/android/java/src/org/chromium/content/common/ProcessInitException.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/common/ProcessInitException.java b/content/public/android/java/src/org/chromium/content/common/ProcessInitException.java
|
| index 0ebbb17ed5f5ac45964cb4e382021681d5252674..ed4f1d1e17664bac34c68770fe8f6f5d641592c8 100644
|
| --- a/content/public/android/java/src/org/chromium/content/common/ProcessInitException.java
|
| +++ b/content/public/android/java/src/org/chromium/content/common/ProcessInitException.java
|
| @@ -1,37 +1,20 @@
|
| -// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| package org.chromium.content.common;
|
|
|
| /**
|
| - * The exception that is thrown when the intialization of a process was failed.
|
| + * This is a wrapper for the real version of ProcessInitExtension. It is here to simplify landing
|
| + * moving ProcessInitException.
|
| + * TODO(aberent) Remove this once the downstream patch lands.
|
| */
|
| -public class ProcessInitException extends Exception {
|
| - private int mErrorCode = 0;
|
| -
|
| +public class ProcessInitException extends org.chromium.base.library_loader.ProcessInitException {
|
| /**
|
| * @param errorCode The error code could be one from content/public/common/result_codes.h
|
| * or embedder.
|
| */
|
| public ProcessInitException(int errorCode) {
|
| - mErrorCode = errorCode;
|
| - }
|
| -
|
| - /**
|
| - * @param errorCode The error code could be one from content/public/common/result_codes.h
|
| - * or embedder.
|
| - * @param throwable The wrapped throwable obj.
|
| - */
|
| - public ProcessInitException(int errorCode, Throwable throwable) {
|
| - super(null, throwable);
|
| - mErrorCode = errorCode;
|
| - }
|
| -
|
| - /**
|
| - * Return the error code.
|
| - */
|
| - public int getErrorCode() {
|
| - return mErrorCode;
|
| + super(errorCode);
|
| }
|
| }
|
|
|