blob: 00a55db9647b7a78a34b7878e0fe374a3be456cb [file] [log] [blame]
// Copyright 2012 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.browser;
import android.content.Context;
import org.chromium.base.JNINamespace;
import org.chromium.content.common.ProcessInitException;
@JNINamespace("content") // TODO(nyquist) Remove this class, and move the functionality to
// BrowserStartupController.
public class AndroidBrowserProcess {
public static final int MAX_RENDERERS_LIMIT = BrowserStartupController.MAX_RENDERERS_LIMIT;
// Temporarily provide the old init, to simplify landing patches
// TODO(aberent) Remove
@Deprecated
public static void init(Context context, int maxRendererProcesses) throws ProcessInitException {
if (!BrowserStartupController.get(context).startBrowserProcessesSync(
maxRendererProcesses)) {
throw new ProcessInitException(1);
}
}
}