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

Unified Diff: chrome/browser/ui/views/translate/translate_bubble_view.cc

Issue 2790723004: Function to count dialog box creations. (Closed)
Patch Set: Change location of files in BUILD.gn Created 3 years, 8 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: chrome/browser/ui/views/translate/translate_bubble_view.cc
diff --git a/chrome/browser/ui/views/translate/translate_bubble_view.cc b/chrome/browser/ui/views/translate/translate_bubble_view.cc
index 140c1181340146d832975d29ab6638d2af3f8288..223f4ff5720117572428c3dc36eab7a167b71904 100644
--- a/chrome/browser/ui/views/translate/translate_bubble_view.cc
+++ b/chrome/browser/ui/views/translate/translate_bubble_view.cc
@@ -21,6 +21,7 @@
#include "chrome/browser/ui/chrome_pages.h"
#include "chrome/browser/ui/translate/translate_bubble_model_impl.h"
#include "chrome/browser/ui/translate/translate_bubble_view_state_transition.h"
+#include "chrome/browser/ui/views/dialog_uma/dialog_uma.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/generated_resources.h"
#include "components/prefs/pref_service.h"
@@ -362,6 +363,7 @@ TranslateBubbleView::TranslateBubbleView(
translate_bubble_view_ = this;
if (web_contents) // web_contents can be null in unit_tests.
mouse_handler_.reset(new WebContentMouseHandler(this, web_contents));
+ RecordDialogCreation(DialogIdentifier::TRANSLATE);
}
views::View* TranslateBubbleView::GetCurrentView() const {

Powered by Google App Engine
This is Rietveld 408576698