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

Unified Diff: chrome/browser/chromeos/preferences.cc

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/preferences.cc
diff --git a/chrome/browser/chromeos/preferences.cc b/chrome/browser/chromeos/preferences.cc
index 26bdbd9ffae1e246efbaa0b6e0a0dabc93a509dc..ed196e2087881cfc4165741f940d50f69cdd1426 100644
--- a/chrome/browser/chromeos/preferences.cc
+++ b/chrome/browser/chromeos/preferences.cc
@@ -391,7 +391,7 @@ void Preferences::ApplyPreferences(ApplyReason reason,
const std::string& pref_name) {
DCHECK(reason != REASON_PREF_CHANGED || !pref_name.empty());
const bool user_is_owner =
- user_manager::UserManager::Get()->GetOwnerEmail() == user_->email();
+ user_manager::UserManager::Get()->GetOwnerID() == user_->GetUserID();
const bool user_is_active = user_->is_active();
system::TouchpadSettings touchpad_settings;

Powered by Google App Engine
This is Rietveld 408576698