| Index: chrome/app/chrome_main_delegate.cc
|
| diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
|
| index 8ea00c77069be45358207274c58e24df948f0198..62f7aee4acd6451eb8998269b57cb8f6d57dcfd0 100644
|
| --- a/chrome/app/chrome_main_delegate.cc
|
| +++ b/chrome/app/chrome_main_delegate.cc
|
| @@ -60,6 +60,7 @@
|
| #include <malloc.h>
|
| #include <algorithm>
|
| #include "base/debug/close_handle_hook_win.h"
|
| +#include "chrome/browser/user_data_downgrade.h"
|
| #include "chrome/common/child_process_logging.h"
|
| #include "chrome/common/v8_breakpad_support_win.h"
|
| #include "components/crash/content/app/crashpad.h"
|
| @@ -719,8 +720,12 @@ void ChromeMainDelegate::PreSandboxStartup() {
|
| #endif
|
|
|
| // Initialize the user data dir for any process type that needs it.
|
| - if (chrome::ProcessNeedsProfileDir(process_type))
|
| + if (chrome::ProcessNeedsProfileDir(process_type)) {
|
| InitializeUserDataDir();
|
| +#if defined(OS_WIN)
|
| + MoveUserDataForFirstRunAfterDowngrade();
|
| +#endif
|
| + }
|
|
|
| // Register component_updater PathProvider after DIR_USER_DATA overidden by
|
| // command line flags. Maybe move the chrome PathProvider down here also?
|
|
|