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

Unified Diff: chrome/browser/chromeos/login/reauth_stats.cc

Issue 1412813003: This CL replaces user_manager::UserID with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@468875--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part2--user_names
Patch Set: Rebased. Created 5 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: chrome/browser/chromeos/login/reauth_stats.cc
diff --git a/chrome/browser/chromeos/login/reauth_stats.cc b/chrome/browser/chromeos/login/reauth_stats.cc
index f442c974f012efa6401590731e93e96e03bdffe0..2e99e74dbc94f53ca83030690ec1241c32e7d0b6 100644
--- a/chrome/browser/chromeos/login/reauth_stats.cc
+++ b/chrome/browser/chromeos/login/reauth_stats.cc
@@ -9,7 +9,7 @@
namespace chromeos {
-void RecordReauthReason(const std::string& user_id, ReauthReason reason) {
+void RecordReauthReason(const AccountId& user_id, ReauthReason reason) {
achuithb 2015/10/23 00:08:50 account_id here and below
Alexander Alekseev 2015/10/23 09:11:21 Done.
user_manager::UserManager* user_manager = user_manager::UserManager::Get();
int old_reason;
// We record only the first value, skipping everything else, except "none"
@@ -21,7 +21,7 @@ void RecordReauthReason(const std::string& user_id, ReauthReason reason) {
}
}
-void SendReauthReason(const std::string& user_id) {
+void SendReauthReason(const AccountId& user_id) {
user_manager::UserManager* user_manager = user_manager::UserManager::Get();
int reauth_reason;
if (user_manager->FindReauthReason(user_id, &reauth_reason) &&

Powered by Google App Engine
This is Rietveld 408576698