| Index: chrome/browser/shell_integration.cc
|
| diff --git a/chrome/browser/shell_integration.cc b/chrome/browser/shell_integration.cc
|
| index ff0ec581cb258314dfb8036e6f4d6ba6dcc072c8..f06e4cb0fe2b05f4e2bdf5e2042f1234734acd20 100644
|
| --- a/chrome/browser/shell_integration.cc
|
| +++ b/chrome/browser/shell_integration.cc
|
| @@ -74,10 +74,9 @@ CommandLine ShellIntegration::CommandLineArgsForLauncher(
|
| #endif
|
| if (!user_data_dir.empty()) {
|
| // Make sure user_data_dir is an absolute path.
|
| - if (file_util::AbsolutePath(&user_data_dir) &&
|
| - file_util::PathExists(user_data_dir)) {
|
| + user_data_dir = user_data_dir.AsAbsolute();
|
| + if (!user_data_dir.empty() && file_util::PathExists(user_data_dir))
|
| new_cmd_line.AppendSwitchPath(switches::kUserDataDir, user_data_dir);
|
| - }
|
| }
|
|
|
| #if defined(OS_CHROMEOS)
|
|
|