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

Unified Diff: components/autofill/content/renderer/password_generation_agent.h

Issue 643493003: [Password Generation] Update UMA stats for popups per page not per event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test Created 6 years, 2 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: components/autofill/content/renderer/password_generation_agent.h
diff --git a/components/autofill/content/renderer/password_generation_agent.h b/components/autofill/content/renderer/password_generation_agent.h
index a2c1c12c2c517abbe9a41c8647a00c7454c887a8..ce85e7e49f7d2577e4ecc51a3aa28a9be04da15b 100644
--- a/components/autofill/content/renderer/password_generation_agent.h
+++ b/components/autofill/content/renderer/password_generation_agent.h
@@ -107,6 +107,16 @@ class PasswordGenerationAgent : public content::RenderViewObserver {
// stats.
bool password_edited_;
+ // True if the generation popup was shown during this navigation. Used to
+ // track UMA stats per page visit rather than per display, since the former
+ // is more interesting.
+ bool generation_popup_shown_;
+
+ // True if the editing popup was shown during this navigation. Used to track
+ // UMA stats per page rather than per display, since the former is more
+ // interesting.
+ bool editing_popup_shown_;
+
// If this feature is enabled. Controlled by Finch.
bool enabled_;

Powered by Google App Engine
This is Rietveld 408576698