| Index: chrome/app/chrome_main_delegate.cc
|
| diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
|
| index abeb5fd6f55f5e643c8555dc029df64f30629475..ec0ff81769f322bf4ea3fbcf279f39ef31794834 100644
|
| --- a/chrome/app/chrome_main_delegate.cc
|
| +++ b/chrome/app/chrome_main_delegate.cc
|
| @@ -571,8 +571,10 @@ void ChromeMainDelegate::PreSandboxStartup() {
|
| #if defined(OS_MACOSX) || defined(OS_WIN)
|
| CheckUserDataDirPolicy(&user_data_dir);
|
| #endif
|
| - if (!user_data_dir.empty())
|
| - CHECK(PathService::Override(chrome::DIR_USER_DATA, user_data_dir));
|
| + if (!user_data_dir.empty()) {
|
| + CHECK(PathService::Override(chrome::DIR_USER_DATA, user_data_dir,
|
| + chrome::ProcessNeedsProfileDir(process_type)));
|
| + }
|
|
|
| startup_timer_.reset(new base::StatsScope<base::StatsCounterTimer>
|
| (content::Counters::chrome_main()));
|
|
|