Index: chrome/browser/browser_main.cc |
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc |
index 2a2bc93e39d639569dc8f358af5d8387bcef6d6d..82bc172f342c4acdd4832439e02f70f17cc7998d 100644 |
--- a/chrome/browser/browser_main.cc |
+++ b/chrome/browser/browser_main.cc |
@@ -572,8 +572,8 @@ Profile* CreateProfile(const MainFunctionParams& parameters, |
// TODO(tc): It would be nice to remove the flag we don't want, but that |
// sounds risky if we parse differently than CommandLineToArgvW. |
CommandLine new_command_line = parameters.command_line_; |
- new_command_line.AppendSwitchWithValue(switches::kUserDataDir, |
- new_user_data_dir.ToWStringHack()); |
+ new_command_line.AppendSwitchPath(switches::kUserDataDir, |
+ new_user_data_dir); |
base::LaunchApp(new_command_line, false, false, NULL); |
} |
#else |