Commit 31034cc8 authored by Luke Sorenson's avatar Luke Sorenson Committed by Commit Bot

Add ComponentInstallationError enum to media_perception_private IDL.

In order to have a better understanding why the component sometimes
fails to install on devices in production, we want to propagate error
codes to clients of the setAnalyticsComponent API.

Bug: 1003037
Change-Id: Ie57417a81d7556dd51f9b2f7e8db96e8fc695516
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1797467
Commit-Queue: Luke Sorenson <lasoren@chromium.org>
Reviewed-by: default avatarToni Baržić <tbarzic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#700477}
parent 158dc995
...@@ -94,6 +94,26 @@ namespace mediaPerceptionPrivate { ...@@ -94,6 +94,26 @@ namespace mediaPerceptionPrivate {
FAILED_TO_INSTALL FAILED_TO_INSTALL
}; };
// Error code associated with a failure to install the media analytics
// component.
enum ComponentInstallationError {
// Component requested does not exist.
UNKNOWN_COMPONENT,
// The update engine fails to install component.
INSTALL_FAILURE,
// Component can not be mounted.
MOUNT_FAILURE,
// The component is not compatible with the device.
COMPATIBILITY_CHECK_FAILED,
// The component was not found - reported for load requests with kSkip
// update policy.
NOT_FOUND
};
dictionary Component { dictionary Component {
ComponentType type; ComponentType type;
}; };
...@@ -104,6 +124,10 @@ namespace mediaPerceptionPrivate { ...@@ -104,6 +124,10 @@ namespace mediaPerceptionPrivate {
// The version string for the current component. // The version string for the current component.
DOMString? version; DOMString? version;
// If the component installation failed, the encountered installation
// error. Not set if the component installation succeeded.
ComponentInstallationError? installationErrorCode;
}; };
// ------------------- Start of process management definitions. ------------ // ------------------- Start of process management definitions. ------------
......
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