Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: ui/views/bubble/bubble_dialog_delegate.cc

Issue 2867683002: Log the creation of dialog boxes using DialogDelegateView and BubbleDialogDelegateView. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/bubble/bubble_dialog_delegate.cc
diff --git a/ui/views/bubble/bubble_dialog_delegate.cc b/ui/views/bubble/bubble_dialog_delegate.cc
index 0f239090451351e9ed2b1b2358027eb24c4f6342..5759c8a8a12e0bb056fde2a2553da7571d4a5d3d 100644
--- a/ui/views/bubble/bubble_dialog_delegate.cc
+++ b/ui/views/bubble/bubble_dialog_delegate.cc
@@ -4,6 +4,7 @@
#include "ui/views/bubble/bubble_dialog_delegate.h"
+#include "base/metrics/histogram_macros.h"
#include "build/build_config.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/base/default_style.h"
@@ -221,6 +222,7 @@ BubbleDialogDelegateView::BubbleDialogDelegateView(View* anchor_view,
if (anchor_view)
SetAnchorView(anchor_view);
UpdateColorsFromTheme(GetNativeTheme());
+ UMA_HISTOGRAM_BOOLEAN("Dialog.BubbleDialogDelegateView.Creation", true);
}
gfx::Rect BubbleDialogDelegateView::GetBubbleBounds() {

Powered by Google App Engine
This is Rietveld 408576698