Support StartupWMClass and StartupNotify fields in Crostini Registry

This patch adds support for storing the StartupWMClass and StartupNotify
fields in the Crostini Registry, and expands the algorithm for matching
windows to Crostini apps to use these fields. We match startup ids
against desktop file ids as the code for launching apps in the container
sets DESKTOP_STARTUP_ID to the desktop file id.

Bug: 821662
Change-Id: I34ba361a167cd5907d76cfbfed57e3903bbf9cfd
Reviewed-on: https://chromium-review.googlesource.com/1021063
Commit-Queue: Timothy Loh <timloh@chromium.org>
Reviewed-by: Nicholas Verne <nverne@chromium.org>
Reviewed-by: David Reveman <reveman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553930}
3 files changed