Ignore duplicated event CompleteLogin from UI

BUG=138985
TEST=existing tests


Review URL: https://chromiumcodereview.appspot.com/10837124

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150305 0039d316-1c4b-4281-b951-d872f2087c98
parent 2ce6a19d
......@@ -305,6 +305,10 @@ void ExistingUserController::SetDisplayEmail(const std::string& email) {
void ExistingUserController::CompleteLogin(const std::string& username,
const std::string& password) {
if (!host_) {
// Complete login event was generated already from UI. Ignore notification.
return;
}
if (!time_init_.is_null()) {
base::TimeDelta delta = base::Time::Now() - time_init_;
UMA_HISTOGRAM_MEDIUM_TIMES("Login.PromptToCompleteLoginTime", delta);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment