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

Unified Diff: chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos.h

Issue 1428213004: This CL replaces std::string user_id in ash/* with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. 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/ui/ash/multi_user/multi_user_notification_blocker_chromeos.h
diff --git a/chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos.h b/chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos.h
index 3afc8eb136144de5c36fce7c093ed2b172fd299e..b39e5374a84856b636228439d9f752daa21b2300 100644
--- a/chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos.h
+++ b/chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos.h
@@ -9,6 +9,7 @@
#include <set>
#include <string>
+#include "components/signin/core/account_id/account_id.h"
#include "ui/message_center/notification_blocker.h"
// A notification blocker for per-profile stream switching. Owned and controlled
@@ -18,11 +19,11 @@ class MultiUserNotificationBlockerChromeOS
public:
MultiUserNotificationBlockerChromeOS(
message_center::MessageCenter* message_center,
- const std::string& initial_user_id);
+ const AccountId& initial_account_id);
~MultiUserNotificationBlockerChromeOS() override;
// Called by MultiUserWindowManager when the active user has changed.
- void ActiveUserChanged(const std::string& user_id);
+ void ActiveUserChanged(const AccountId& account_id);
// message_center::NotificationBlocker overrides:
bool ShouldShowNotification(
@@ -34,8 +35,8 @@ class MultiUserNotificationBlockerChromeOS
// Returns true if this blocker is actively working.
bool IsActive() const;
- std::string active_user_id_;
- std::map<std::string, bool> quiet_modes_;
+ AccountId active_account_id_;
+ std::map<AccountId, bool> quiet_modes_;
DISALLOW_COPY_AND_ASSIGN(MultiUserNotificationBlockerChromeOS);
};

Powered by Google App Engine
This is Rietveld 408576698