| Index: chrome/browser/profiles/profile_manager.cc
|
| diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
|
| index f95ab4f82ce480b203cc926220fbabb9f329ff37..8f6901cfa4b7bbcf939f1cdfdace8b1a84c3897c 100644
|
| --- a/chrome/browser/profiles/profile_manager.cc
|
| +++ b/chrome/browser/profiles/profile_manager.cc
|
| @@ -224,6 +224,21 @@ Profile* ProfileManager::GetDefaultProfileOrOffTheRecord() {
|
| return profile;
|
| }
|
|
|
| +#if defined(OS_CHROMEOS)
|
| +Profile* ProfileManager::GetSigninProfile(
|
| + const base::FilePath& user_data_dir) {
|
| + base::FilePath signin_profile_dir =
|
| + user_data_dir.AppendASCII(chrome::kInitialProfile);
|
| + return GetProfile(signin_profile_dir)->GetOffTheRecordProfile();
|
| +}
|
| +
|
| +// static
|
| +Profile* ProfileManager::GetSigninProfile() {
|
| + ProfileManager* profile_manager = g_browser_process->profile_manager();
|
| + return profile_manager->GetSigninProfile(profile_manager->user_data_dir_);
|
| +}
|
| +#endif
|
| +
|
| // static
|
| Profile* ProfileManager::GetLastUsedProfile() {
|
| ProfileManager* profile_manager = g_browser_process->profile_manager();
|
|
|