commit | b1555847f62761c7876497637dee593e80c249b5 | [log] [tgz] |
---|---|---|
author | Michael Powell <mikepowell@google.com> | Tue Jan 29 16:14:52 2019 -0800 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Wed Jan 30 17:33:18 2019 +0000 |
tree | d01dafa286ae2380c163eb986f3304adf92b5081 | |
parent | 99c10af67a00c529e5a89228f36406ceca45c5f6 [diff] |
[Terminal] Refactor out V1ViewProvider and V2ViewProvider. These two structs are not really necessary. The `add_service` function takes a `ServiceFactory`, but that trait is already implemented on the 2-tuple `(&str, FnMut(Channel))`. So removing those structs and passing in such a tuple is simpler. Testing: Manually tested that the terminal still worked as before. Change-Id: I6aa05560fa1858c01287bfbe20b9278ea0e2e8b7