summaryrefslogtreecommitdiffstats
path: root/chrome_frame
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-13 22:10:30 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-13 22:10:30 +0000
commit0445eb4ed9f9a9bb86f8c4338f86a84fbce7b7f2 (patch)
tree63eb34b491bfec6af9a6c04361d21d86c086d7eb /chrome_frame
parentc2c263cd9f2ac658d6dc35ecbd4551ca0c5cb154 (diff)
downloadchromium_src-0445eb4ed9f9a9bb86f8c4338f86a84fbce7b7f2.zip
chromium_src-0445eb4ed9f9a9bb86f8c4338f86a84fbce7b7f2.tar.gz
chromium_src-0445eb4ed9f9a9bb86f8c4338f86a84fbce7b7f2.tar.bz2
CommandLine: eliminate wstring-accepting AppendLooseValue
Instead use AppendArg variants which accept a FilePath or an ASCII string. Review URL: http://codereview.chromium.org/3134008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56100 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r--chrome_frame/test/chrome_frame_test_utils.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome_frame/test/chrome_frame_test_utils.cc b/chrome_frame/test/chrome_frame_test_utils.cc
index 5f59f6c..f5b1315 100644
--- a/chrome_frame/test/chrome_frame_test_utils.cc
+++ b/chrome_frame/test/chrome_frame_test_utils.cc
@@ -159,7 +159,7 @@ base::ProcessHandle LaunchExecutable(const std::wstring& executable,
}
} else {
CommandLine cmdline((FilePath(path)));
- cmdline.AppendLooseValue(argument);
+ cmdline.AppendArgNative(argument);
if (!base::LaunchApp(cmdline, false, false, &process)) {
LOG(ERROR) << "LaunchApp failed: " << ::GetLastError();
}
@@ -181,11 +181,8 @@ base::ProcessHandle LaunchChrome(const std::wstring& url) {
path = path.AppendASCII(kChromeImageName);
CommandLine cmd(path);
- std::wstring args = L"--";
- args += ASCIIToWide(switches::kNoFirstRun);
- args += L" ";
- args += url;
- cmd.AppendLooseValue(args);
+ cmd.AppendSwitch(switches::kNoFirstRun);
+ cmd.AppendArgNative(url);
base::ProcessHandle process = NULL;
base::LaunchApp(cmd, false, false, &process);