| Index: chrome/browser/ui/browser_finder.cc
|
| diff --git a/chrome/browser/ui/browser_finder.cc b/chrome/browser/ui/browser_finder.cc
|
| index e4198d48bab1a9e1645d232f8e95dd0e489dd5c0..cd485eeff4cee19132e074146208d3eddd74fbfc 100644
|
| --- a/chrome/browser/ui/browser_finder.cc
|
| +++ b/chrome/browser/ui/browser_finder.cc
|
| @@ -15,6 +15,7 @@
|
| #if defined(OS_CHROMEOS)
|
| #include "chrome/browser/ui/ash/multi_user/multi_user_util.h"
|
| #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h"
|
| +#include "components/signin/core/account_id/account_id.h"
|
| #endif
|
|
|
| using content::WebContents;
|
| @@ -54,11 +55,12 @@ bool BrowserMatches(Browser* browser,
|
| chrome::MultiUserWindowManager::GetInstance();
|
| Profile* shown_profile = nullptr;
|
| if (window_manager) {
|
| - const std::string& shown_user_id = window_manager->GetUserPresentingWindow(
|
| + const AccountId& shown_account_id = window_manager->GetUserPresentingWindow(
|
| browser->window()->GetNativeWindow());
|
| - shown_profile = shown_user_id.empty()
|
| - ? nullptr
|
| - : multi_user_util::GetProfileFromUserID(shown_user_id);
|
| + shown_profile =
|
| + shown_account_id.is_valid()
|
| + ? multi_user_util::GetProfileFromAccountId(shown_account_id)
|
| + : nullptr;
|
| }
|
| #endif
|
|
|
|
|