summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-20 01:30:28 +0000
committernirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-20 01:30:28 +0000
commitf49cb36221ef980b26c0e7f1eb50ba16583727ec (patch)
tree11db006645591d60e2e9ed4003126eeb6865e6a4
parent66e7ce0d174ebe70d82b3649ef242cca61e18bb0 (diff)
downloadchromium_src-f49cb36221ef980b26c0e7f1eb50ba16583727ec.zip
chromium_src-f49cb36221ef980b26c0e7f1eb50ba16583727ec.tar.gz
chromium_src-f49cb36221ef980b26c0e7f1eb50ba16583727ec.tar.bz2
Split the arg to --extra-chrome-flags by spaces before passing to Chrome
Otherwise the whole string (with spaces) is passed to Chrome, and it doesn't work. BUG=none TEST=ui tests should work Review URL: http://codereview.chromium.org/276073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29487 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/test/ui/ui_test.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc
index 4f18195..725092a 100644
--- a/chrome/test/ui/ui_test.cc
+++ b/chrome/test/ui/ui_test.cc
@@ -1019,7 +1019,11 @@ bool UITest::LaunchBrowserHelper(const CommandLine& arguments,
std::wstring extra_chrome_flags =
CommandLine::ForCurrentProcess()->GetSwitchValue(kExtraChromeFlagsSwitch);
if (!extra_chrome_flags.empty()) {
- command_line.AppendLooseValue(extra_chrome_flags);
+ // Split by spaces and append to command line
+ std::vector<std::wstring> flags;
+ SplitString(extra_chrome_flags, ' ', &flags);
+ for (size_t i = 0; i < flags.size(); ++i)
+ command_line.AppendLooseValue(flags[i]);
}
// No first-run dialogs, please.