| Index: chrome/browser/chromeos/profiles/profile_helper.cc
|
| diff --git a/chrome/browser/chromeos/profiles/profile_helper.cc b/chrome/browser/chromeos/profiles/profile_helper.cc
|
| index 702ed361506690016ac431e3f4eb4606060abe0e..cda520eef79767df51db0801c57f9806edac7cf2 100644
|
| --- a/chrome/browser/chromeos/profiles/profile_helper.cc
|
| +++ b/chrome/browser/chromeos/profiles/profile_helper.cc
|
| @@ -21,12 +21,6 @@ namespace chromeos {
|
|
|
| namespace {
|
|
|
| -base::FilePath GetSigninProfileDir() {
|
| - ProfileManager* profile_manager = g_browser_process->profile_manager();
|
| - base::FilePath user_data_dir = profile_manager->user_data_dir();
|
| - return user_data_dir.AppendASCII(chrome::kInitialProfile);
|
| -}
|
| -
|
| bool ShouldAddProfileDirPrefix(const std::string& user_id_hash) {
|
| // Do not add profile dir prefix for legacy profile dir and test
|
| // user profile. The reason of not adding prefix for test user profile
|
| @@ -79,6 +73,13 @@ base::FilePath ProfileHelper::GetProfileDirByLegacyLoginProfileSwitch() {
|
| }
|
|
|
| // static
|
| +base::FilePath ProfileHelper::GetSigninProfileDir() {
|
| + ProfileManager* profile_manager = g_browser_process->profile_manager();
|
| + base::FilePath user_data_dir = profile_manager->user_data_dir();
|
| + return user_data_dir.AppendASCII(chrome::kInitialProfile);
|
| +}
|
| +
|
| +// static
|
| Profile* ProfileHelper::GetSigninProfile() {
|
| ProfileManager* profile_manager = g_browser_process->profile_manager();
|
| return profile_manager->GetProfile(GetSigninProfileDir())->
|
|
|