Index: chrome/browser/prerender/prerender_tab_helper.cc |
=================================================================== |
--- chrome/browser/prerender/prerender_tab_helper.cc (revision 215333) |
+++ chrome/browser/prerender/prerender_tab_helper.cc (working copy) |
@@ -250,6 +250,15 @@ |
if (params.password_form.origin.is_valid() && prerender_manager) { |
prerender_manager->RecordLikelyLoginOnURL(params.url); |
RecordEvent(EVENT_LOGIN_ACTION_ADDED); |
+ if (details.is_main_frame) { |
+ RecordEvent(EVENT_LOGIN_ACTION_ADDED_MAINFRAME); |
+ if (params.password_form.password_value.empty()) |
+ RecordEvent(EVENT_LOGIN_ACTION_ADDED_MAINFRAME_PW_EMPTY); |
+ } else { |
+ RecordEvent(EVENT_LOGIN_ACTION_ADDED_SUBFRAME); |
+ if (params.password_form.password_value.empty()) |
+ RecordEvent(EVENT_LOGIN_ACTION_ADDED_SUBFRAME_PW_EMPTY); |
+ } |
} |
} |