blob: b6874eb252c9c7d18f17e1687fa71b2d6fa81780 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/assistant/util/histogram_util.h"
#include "ash/assistant/model/assistant_ui_model.h"
#include "base/metrics/histogram_macros.h"
#include "chromeos/services/assistant/public/mojom/assistant.mojom.h"
namespace ash {
namespace assistant {
namespace util {
void IncrementAssistantQueryCountForEntryPoint(
chromeos::assistant::mojom::AssistantEntryPoint entry_point) {
UMA_HISTOGRAM_ENUMERATION("Assistant.QueryCountPerEntryPoint", entry_point);
}
void RecordAssistantEntryPoint(
chromeos::assistant::mojom::AssistantEntryPoint entry_point) {
UMA_HISTOGRAM_ENUMERATION("Assistant.EntryPoint", entry_point);
}
void RecordAssistantExitPoint(
chromeos::assistant::mojom::AssistantExitPoint exit_point) {
UMA_HISTOGRAM_ENUMERATION("Assistant.ExitPoint", exit_point);
}
void IncrementAssistantButtonClickCount(AssistantButtonId button_id) {
UMA_HISTOGRAM_ENUMERATION("Assistant.ButtonClickCount", button_id,
AssistantButtonId::kMaxValue);
}
void RecordAssistantQuerySource(
chromeos::assistant::mojom::AssistantQuerySource source) {
UMA_HISTOGRAM_ENUMERATION("Assistant.QuerySource", source);
}
} // namespace util
} // namespace assistant
} // namespace ash