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

Unified Diff: chrome/browser/chromeos/profiles/profile_helper.cc

Issue 1425093004: Revert of 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: 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/profiles/profile_helper.cc
diff --git a/chrome/browser/chromeos/profiles/profile_helper.cc b/chrome/browser/chromeos/profiles/profile_helper.cc
index ddcd38816fe7176534f8cd2be4468917d577b222..24411c3ab88f0d94065fd329cdee88b78908c8d2 100644
--- a/chrome/browser/chromeos/profiles/profile_helper.cc
+++ b/chrome/browser/chromeos/profiles/profile_helper.cc
@@ -170,8 +170,7 @@
ProfileHelper::Get()->GetUserByProfile(profile);
if (!user)
return false;
- return user->GetAccountId() ==
- user_manager::UserManager::Get()->GetOwnerAccountId();
+ return user->email() == user_manager::UserManager::Get()->GetOwnerEmail();
}
// static

Powered by Google App Engine
This is Rietveld 408576698