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

Unified Diff: chrome/browser/sync/sync_ui_util.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: Fix Win GN build. Created 5 years, 1 month 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/sync/sync_ui_util.cc
diff --git a/chrome/browser/sync/sync_ui_util.cc b/chrome/browser/sync/sync_ui_util.cc
index ca2e8ecec0efc9700c3e37c4b2f0891c55182d71..5c55de96ab14e5850c78aff8d2bb27cee3a52486 100644
--- a/chrome/browser/sync/sync_ui_util.cc
+++ b/chrome/browser/sync/sync_ui_util.cc
@@ -35,6 +35,7 @@
#include "ui/base/l10n/l10n_util.h"
#if defined(OS_CHROMEOS)
+#include "components/signin/core/account_id/account_id.h"
#include "components/user_manager/user_manager.h"
#endif // defined(OS_CHROMEOS)
@@ -63,7 +64,7 @@ base::string16 GetSyncedStateStatusLabel(ProfileSyncService* service,
// On CrOS user email is sanitized and then passed to the signin manager.
// Original email (containing dots) is stored as "display email".
user_display_name = user_manager::UserManager::Get()->GetUserDisplayEmail(
- user_display_name);
+ AccountId::FromUserEmail(user_display_name));
}
#endif // defined(OS_CHROMEOS)

Powered by Google App Engine
This is Rietveld 408576698