aboutsummaryrefslogtreecommitdiff
path: root/host/commands/metrics/events.cc
diff options
context:
space:
mode:
Diffstat (limited to 'host/commands/metrics/events.cc')
-rw-r--r--host/commands/metrics/events.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/commands/metrics/events.cc b/host/commands/metrics/events.cc
index 3d3a7c14a..ec0147e9a 100644
--- a/host/commands/metrics/events.cc
+++ b/host/commands/metrics/events.cc
@@ -94,10 +94,10 @@ cuttlefish::MetricsEvent::VmmType GetVmmManager() {
auto config = cuttlefish::CuttlefishConfig::Get();
CHECK(config) << "Could not open cuttlefish config";
auto vmm = config->vm_manager();
- if (vmm == cuttlefish::vm_manager::CrosvmManager::name()) {
+ if (vmm == cuttlefish::VmmMode::kCrosvm) {
return cuttlefish::MetricsEvent::CUTTLEFISH_VMM_TYPE_CROSVM;
}
- if (vmm == cuttlefish::vm_manager::QemuManager::name()) {
+ if (vmm == cuttlefish::VmmMode::kQemu) {
return cuttlefish::MetricsEvent::CUTTLEFISH_VMM_TYPE_QEMU;
}
return cuttlefish::MetricsEvent::CUTTLEFISH_VMM_TYPE_UNSPECIFIED;