| Index: chrome/app/chrome_main_delegate.cc
|
| diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
|
| index f1d4fde1874b6a6b8bdc633a4ab4813bbdc8b94e..063c156b77be7c9d50d604fc94f4ba26ce9c2287 100644
|
| --- a/chrome/app/chrome_main_delegate.cc
|
| +++ b/chrome/app/chrome_main_delegate.cc
|
| @@ -567,8 +567,12 @@ 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::OverrideAndCreateIfNeeded(
|
| + chrome::DIR_USER_DATA,
|
| + user_data_dir,
|
| + chrome::ProcessNeedsProfileDir(process_type)));
|
| + }
|
|
|
| startup_timer_.reset(new base::StatsScope<base::StatsCounterTimer>
|
| (content::Counters::chrome_main()));
|
|
|