| Index: chrome/browser/profiles/profile_window.cc
|
| diff --git a/chrome/browser/profiles/profile_window.cc b/chrome/browser/profiles/profile_window.cc
|
| index 90b4a353a72c3cdac755418a72c60639a111cf9d..2f09ebd2a892b3f6fffdfe80f04c11568eabff4a 100644
|
| --- a/chrome/browser/profiles/profile_window.cc
|
| +++ b/chrome/browser/profiles/profile_window.cc
|
| @@ -244,6 +244,18 @@ const char kUserManagerSelectProfileChromeSettings[] = "#chrome-settings";
|
| const char kUserManagerSelectProfileChromeMemory[] = "#chrome-memory";
|
| const char kUserManagerSelectProfileAppLauncher[] = "#app-launcher";
|
|
|
| +base::FilePath GetPathOfProfileWithEmail(ProfileManager* profile_manager,
|
| + const std::string& email) {
|
| + base::string16 profile_email = base::UTF8ToUTF16(email);
|
| + std::vector<ProfileAttributesEntry*> entries =
|
| + profile_manager->GetProfileInfoCache().GetAllProfilesAttributes();
|
| + for (ProfileAttributesEntry* entry : entries) {
|
| + if (entry->GetUserName() == profile_email)
|
| + return entry->GetPath();
|
| + }
|
| + return base::FilePath();
|
| +}
|
| +
|
| void FindOrCreateNewWindowForProfile(
|
| Profile* profile,
|
| chrome::startup::IsProcessStartup process_startup,
|
|
|