| Index: chrome/browser/profiles/profile_manager.cc
|
| diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
|
| index adff57b742d4526507207a2efc7a359961ac23e2..5b7484f1ce646c4ee34e4543689ec734e8044464 100644
|
| --- a/chrome/browser/profiles/profile_manager.cc
|
| +++ b/chrome/browser/profiles/profile_manager.cc
|
| @@ -593,6 +593,16 @@ base::FilePath ProfileManager::GetGuestProfilePath() {
|
| return guest_path.Append(chrome::kGuestProfileDir);
|
| }
|
|
|
| +// static
|
| +base::FilePath ProfileManager::GetSystemProfilePath() {
|
| + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| +
|
| + ProfileManager* profile_manager = g_browser_process->profile_manager();
|
| +
|
| + base::FilePath system_path = profile_manager->user_data_dir();
|
| + return system_path.Append(chrome::kSystemProfileDir);
|
| +}
|
| +
|
| base::FilePath ProfileManager::GenerateNextProfileDirectoryPath() {
|
| PrefService* local_state = g_browser_process->local_state();
|
| DCHECK(local_state);
|
| @@ -1183,7 +1193,7 @@ ProfileManager::ProfileInfo* ProfileManager::GetProfileInfoByPath(
|
| }
|
|
|
| void ProfileManager::AddProfileToCache(Profile* profile) {
|
| - if (profile->IsGuestSession())
|
| + if (profile->IsGuestSession() || profile->IsSystemProfile())
|
| return;
|
| ProfileInfoCache& cache = GetProfileInfoCache();
|
| if (profile->GetPath().DirName() != cache.GetUserDataDir())
|
|
|