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

Side by Side Diff: chromeos/login/auth/extended_authenticator_impl.cc

Issue 2208583006: UMA for pin unlock success/failure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fixed patch set 1 errors. Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/login/auth/extended_authenticator_impl.h" 5 #include "chromeos/login/auth/extended_authenticator_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 } 348 }
349 349
350 if (return_code == cryptohome::MOUNT_ERROR_USER_DOES_NOT_EXIST) 350 if (return_code == cryptohome::MOUNT_ERROR_USER_DOES_NOT_EXIST)
351 state = NO_MOUNT; 351 state = NO_MOUNT;
352 352
353 if (consumer_) 353 if (consumer_)
354 consumer_->OnAuthenticationFailure(state); 354 consumer_->OnAuthenticationFailure(state);
355 355
356 if (old_consumer_) { 356 if (old_consumer_) {
357 AuthFailure failure(AuthFailure::UNLOCK_FAILED); 357 AuthFailure failure(AuthFailure::UNLOCK_FAILED);
358 failure.SetIsPinAttempt(user_context.IsUsingPin());
358 old_consumer_->OnAuthFailure(failure); 359 old_consumer_->OnAuthFailure(failure);
359 } 360 }
360 } 361 }
361 362
362 } // namespace chromeos 363 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698