Commit 348741b8 authored by Mike Wittman's avatar Mike Wittman Committed by Commit Bot

[Sampling profiler] Annotate module installer Module with @MainDex

The annotation is required to load modules via JNI calls in the renderer
process, as done for the sampling profiler.

Bug: 1004855
Change-Id: I729edef2cbcb434177ec0d91e827f8839b6516c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2274577
Commit-Queue: Mike Wittman <wittman@chromium.org>
Reviewed-by: default avatarFred Mello <fredmello@chromium.org>
Cr-Commit-Position: refs/heads/master@{#784061}
parent 601869eb
......@@ -9,6 +9,7 @@ import androidx.annotation.VisibleForTesting;
import org.chromium.base.BundleUtils;
import org.chromium.base.StrictModeContext;
import org.chromium.base.annotations.JNINamespace;
import org.chromium.base.annotations.MainDex;
import org.chromium.base.annotations.NativeMethods;
import org.chromium.base.library_loader.LibraryLoader;
import org.chromium.components.module_installer.engine.InstallEngine;
......@@ -18,11 +19,12 @@ import org.chromium.components.module_installer.util.Timer;
/**
* Represents a feature module. Can be used to install the module, access its interface, etc. See
* {@link ModuleInterface} for how to conveniently create an instance of the module class for a
* specific feature module.
* specific feature module. The @MainDex annotation supports module use in the renderer process.
*
* @param <T> The interface of the module
*/
@JNINamespace("module_installer")
@MainDex
public class Module<T> {
private final String mName;
private final Class<T> mInterfaceClass;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment