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

Unified Diff: chrome/browser/sync/sync_error_notifier_ash.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/sync/sync_error_notifier_ash.cc
diff --git a/chrome/browser/sync/sync_error_notifier_ash.cc b/chrome/browser/sync/sync_error_notifier_ash.cc
index 76d0049023bc8da787074c59996e8c927806e822..6e6f2cf5f1737f354d8e857e75516afaa771ad58 100644
--- a/chrome/browser/sync/sync_error_notifier_ash.cc
+++ b/chrome/browser/sync/sync_error_notifier_ash.cc
@@ -20,6 +20,7 @@
#include "chrome/common/url_constants.h"
#include "chrome/grit/chromium_strings.h"
#include "chrome/grit/generated_resources.h"
+#include "components/user_manager/user_id.h"
#include "grit/theme_resources.h"
#include "third_party/WebKit/public/web/WebTextDirection.h"
#include "ui/base/l10n/l10n_util.h"
@@ -166,7 +167,7 @@ void SyncErrorNotifier::OnErrorChanged() {
kProfileSyncNotificationId);
// Set |profile_id| for multi-user notification blocker.
- notifier_id.profile_id = multi_user_util::GetUserIDFromProfile(profile_);
+ notifier_id.profile_id = multi_user_util::GetUserIDFromProfile(profile_).GetUserEmail();
// Add a new notification.
Notification notification(

Powered by Google App Engine
This is Rietveld 408576698