| Index: chrome/browser/shell_integration.cc
|
| diff --git a/chrome/browser/shell_integration.cc b/chrome/browser/shell_integration.cc
|
| index 674e12f5a45a8626a181a5fd84c259907e4c8112..cd299c55abc67cb73c7f427fcc4c333d769d6772 100644
|
| --- a/chrome/browser/shell_integration.cc
|
| +++ b/chrome/browser/shell_integration.cc
|
| @@ -11,6 +11,7 @@
|
| #include "base/prefs/pref_service.h"
|
| #include "base/string_util.h"
|
| #include "base/utf_string_conversions.h"
|
| +#include "chrome/browser/policy/policy_path_parser.h"
|
| #include "chrome/common/chrome_paths.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/pref_names.h"
|
| @@ -62,6 +63,9 @@ CommandLine ShellIntegration::CommandLineArgsForLauncher(
|
| // Use the same UserDataDir for new launches that we currently have set.
|
| base::FilePath user_data_dir =
|
| cmd_line.GetSwitchValuePath(switches::kUserDataDir);
|
| +#if defined(OS_MACOSX) || defined(OS_WIN)
|
| + policy::path_parser::CheckUserDataDirPolicy(&user_data_dir);
|
| +#endif
|
| if (!user_data_dir.empty()) {
|
| // Make sure user_data_dir is an absolute path.
|
| if (file_util::AbsolutePath(&user_data_dir) &&
|
|
|