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

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

Powered by Google App Engine
This is Rietveld 408576698