From e6430e577f105ad8813c92e75c54660c4985026e Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 18 Sep 2017 14:34:04 +0200 Subject: BASELINE: Update Chromium to 61.0.3163.99 Change-Id: I8452f34574d88ca2b27af9bd56fc9ff3f16b1367 Reviewed-by: Alexandru Croitor --- chromium/components/ui_metrics/BUILD.gn | 9 +++++++ .../components/ui_metrics/sadtab_metrics_types.h | 28 ++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 chromium/components/ui_metrics/BUILD.gn create mode 100644 chromium/components/ui_metrics/sadtab_metrics_types.h (limited to 'chromium/components/ui_metrics') diff --git a/chromium/components/ui_metrics/BUILD.gn b/chromium/components/ui_metrics/BUILD.gn new file mode 100644 index 00000000000..941ed1c5eef --- /dev/null +++ b/chromium/components/ui_metrics/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2017 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. + +source_set("ui_metrics") { + sources = [ + "sadtab_metrics_types.h", + ] +} diff --git a/chromium/components/ui_metrics/sadtab_metrics_types.h b/chromium/components/ui_metrics/sadtab_metrics_types.h new file mode 100644 index 00000000000..056541aecd6 --- /dev/null +++ b/chromium/components/ui_metrics/sadtab_metrics_types.h @@ -0,0 +1,28 @@ +// Copyright 2017 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. + +#ifndef COMPONENTS_UI_METRICS_SADTAB_METRICS_TYPES_H_ +#define COMPONENTS_UI_METRICS_SADTAB_METRICS_TYPES_H_ + +namespace ui_metrics { +// An enum for reporting interaction events to a UMA histogram. +// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.tab +enum class SadTabEvent { + // Records that the Sad Tab was displayed. + DISPLAYED = 0, + // Records that the main Sad Tab button was triggered. + BUTTON_CLICKED = 1, + // Records that the Sad Tab help link was triggered. + HELP_LINK_CLICKED = 2, + // Enum end marker. + MAX_SAD_TAB_EVENT = 3, +}; + +// Describes the mode of the Sad Tab as being in 'reload' mode. +const char kSadTabReloadHistogramKey[] = "Tabs.SadTab.Reload.Event"; +// Describes the mode of the Sad Tab as being in 'feedback' mode. +const char kSadTabFeedbackHistogramKey[] = "Tabs.SadTab.Feedback.Event"; +} + +#endif // COMPONENTS_UI_METRICS_SADTAB_METRICS_TYPES_H_ -- cgit v1.2.1