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

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

Powered by Google App Engine
This is Rietveld 408576698