commit | c078108d84069f48c51b57972e1ca06d5070061e | [log] [tgz] |
---|---|---|
author | Paul Westbrook <pwestbro@google.com> | Wed Dec 09 01:15:06 2015 -0800 |
committer | Paul Westbrook <pwestbro@google.com> | Thu Dec 10 11:03:45 2015 +0000 |
tree | 419071a96d7ca2355bf8b461a36fe8679e3a6b05 | |
parent | 86530d24bf0ebd1491f012cf6d9e12d936367798 [diff] |
Use a map for GetDeviceUiKind This makes it easier to add new device kinds, and reduces the number of string comparisions when getting the device kind Change-Id: Ife894fdb996adcccf73d2f9726c18a139590c132 Reviewed-on: https://weave-review.googlesource.com/1846 Reviewed-by: Alex Vakulenko <avakulenko@google.com> Reviewed-by: Vitaly Buka <vitalybuka@google.com>