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/notifications/profile_notification.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/notifications/profile_notification.cc
diff --git a/chrome/browser/notifications/profile_notification.cc b/chrome/browser/notifications/profile_notification.cc
index 745820a2ee5862b857b3f778540eab4c2b540b5a..000922d0c08822a9b105c6355737054dacd4c2d7 100644
--- a/chrome/browser/notifications/profile_notification.cc
+++ b/chrome/browser/notifications/profile_notification.cc
@@ -6,6 +6,7 @@
#include "base/strings/stringprintf.h"
#include "chrome/browser/ui/ash/multi_user/multi_user_util.h"
+#include "components/user_manager/user_id.h"
// static
std::string ProfileNotification::GetProfileNotificationId(
@@ -31,7 +32,7 @@ ProfileNotification::ProfileNotification(
notification) {
DCHECK(profile);
#if defined(OS_CHROMEOS)
- notification_.set_profile_id(multi_user_util::GetUserIDFromProfile(profile));
+ notification_.set_profile_id(multi_user_util::GetUserIDFromProfile(profile).GetUserEmail());
#endif
}

Powered by Google App Engine
This is Rietveld 408576698