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

Unified Diff: chrome/browser/ui/ash/multi_user/multi_user_window_manager_stub.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_window_manager_stub.h
diff --git a/chrome/browser/ui/ash/multi_user/multi_user_window_manager_stub.h b/chrome/browser/ui/ash/multi_user/multi_user_window_manager_stub.h
index 46df924d30e26f9ddb958e2d882968ece7679652..f7f7faf53d82a833bef84eec29a86aa984460844 100644
--- a/chrome/browser/ui/ash/multi_user/multi_user_window_manager_stub.h
+++ b/chrome/browser/ui/ash/multi_user/multi_user_window_manager_stub.h
@@ -12,6 +12,8 @@
#include "base/compiler_specific.h"
#include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h"
+class AccountId;
+
namespace chrome {
// This is the implementation of MultiUserWindowManager for single user mode.
@@ -22,17 +24,16 @@ class MultiUserWindowManagerStub : public MultiUserWindowManager {
// MultiUserWindowManager overrides:
void SetWindowOwner(aura::Window* window,
- const std::string& user_id) override;
- const std::string& GetWindowOwner(aura::Window* window) const override;
+ const AccountId& account_id) override;
+ const AccountId& GetWindowOwner(aura::Window* window) const override;
void ShowWindowForUser(aura::Window* window,
- const std::string& user_id) override;
+ const AccountId& account_id) override;
bool AreWindowsSharedAmongUsers() const override;
void GetOwnersOfVisibleWindows(
- std::set<std::string>* user_ids) const override;
+ std::set<AccountId>* account_ids) const override;
bool IsWindowOnDesktopOfUser(aura::Window* window,
- const std::string& user_id) const override;
- const std::string& GetUserPresentingWindow(
- aura::Window* window) const override;
+ const AccountId& account_id) const override;
+ const AccountId& GetUserPresentingWindow(aura::Window* window) const override;
void AddUser(content::BrowserContext* context) override;
void AddObserver(Observer* observer) override;
void RemoveObserver(Observer* observer) override;

Powered by Google App Engine
This is Rietveld 408576698