| // Copyright 2021 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 "content/common/debug_utils.h" |
| |
| #include "base/logging.h" |
| #include "base/metrics/histogram_macros.h" |
| #include "base/numerics/safe_conversions.h" |
| |
| namespace content { |
| |
| void CaptureTraceForNavigationDebugScenario(DebugScenario scenario) { |
| LOG(ERROR) << "Hit debug scenario: " << base::strict_cast<int>(scenario); |
| UMA_HISTOGRAM_ENUMERATION("Stability.DebugScenario.Navigation", scenario); |
| } |
| |
| } // namespace content |