Chromium Code Reviews
DescriptionBasic webapp UI for host-offline-reason.
This changelist:
Adding a basic UI for displaying host-offline-reason:
- When no host-offline-reason is provided, old behavior is preserved
- When a host-offline-reason is provided, the text used to present a host
says: "<hostname> (reported an error <time>)"
rather than: "<hostname> (last online 11/11/2014)"
- When a known host-offline-reason is provided, a tooltip is added to the host
giving localized description of the specific host-offline-reason. Example
tooltip: "Invalid host configuration."
- When an unknown host-offline-reason is provided (one without a localized
description text), a generic tooltip is added saying:
"Unrecognized error: INVALID_HOST_CONFIGURATION."
Context:
After crrev.com/719983002 Chromoting host sends an host-offline-reason string
before exiting. The host-offline-reason value is currently always based on
ExitCodeToString function / HostExitCodes enum, but in principle
host-offline-reason is not necessarily tied to an exit code (i.e. in the future
the host should send "INVALID_POLICY" host-offline-reason but rather than
exiting should hang around monitoring policy for changes). The
host-offline-reason sent by the host is stored in the Chromoting directory.
Since cr/79856832the directory sends host-offline-reason to the client as
hostOfflineReason field inside a Host object.
BUG=410050, 247245
TEST=Manually tried the UI in the 3 cases: hor missing, known hor, unknown hor.
Committed: https://crrev.com/f0a7d8ada0ddf100cd2983f0ad1d9d853115d227
Cr-Commit-Position: refs/heads/master@{#315396}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Addressed Jamie's feedback. #
Total comments: 6
Patch Set 3 : Fixed minor nits pointed out by Jamie. #
Messages
Total messages: 11 (3 generated)
|
|||||||||||||||||||||||||||||||||||||