diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-30 05:59:57 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-30 05:59:57 +0000 |
commit | 05076ba206e040b31fdb41a39cc10a2ecc4adf9d (patch) | |
tree | 58c20da4c63a0384c2241b5ddd676a6b7bddf927 /chrome_frame | |
parent | 4c4aae74e9f32f7ff06226b3d5e2fd1723127913 (diff) | |
download | chromium_src-05076ba206e040b31fdb41a39cc10a2ecc4adf9d.zip chromium_src-05076ba206e040b31fdb41a39cc10a2ecc4adf9d.tar.gz chromium_src-05076ba206e040b31fdb41a39cc10a2ecc4adf9d.tar.bz2 |
Convert a bunch of easy AppendSwitchWithValue to *ASCII.
For this patch, I skipped over any instance where it wasn't a nearly trivial
change.
Review URL: http://codereview.chromium.org/3069014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54285 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/chrome_frame_automation.cc | 4 | ||||
-rw-r--r-- | chrome_frame/chrome_launcher_unittest.cc | 2 | ||||
-rw-r--r-- | chrome_frame/chrome_tab.cc | 4 | ||||
-rw-r--r-- | chrome_frame/test/perf/chrome_frame_perftest.cc | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc index fdf5831..72c488c 100644 --- a/chrome_frame/chrome_frame_automation.cc +++ b/chrome_frame/chrome_frame_automation.cc @@ -279,8 +279,8 @@ void ProxyFactory::CreateProxy(ProxyFactory::ProxyCacheEntry* entry, // Launch browser scoped_ptr<CommandLine> command_line( chrome_launcher::CreateLaunchCommandLine()); - command_line->AppendSwitchWithValue(switches::kAutomationClientChannelID, - proxy->channel_id()); + command_line->AppendSwitchASCII(switches::kAutomationClientChannelID, + proxy->channel_id()); // Run Chrome in Chrome Frame mode. In practice, this modifies the paths // and registry keys that Chrome looks in via the BrowserDistribution diff --git a/chrome_frame/chrome_launcher_unittest.cc b/chrome_frame/chrome_launcher_unittest.cc index 9511b40..3d233ac 100644 --- a/chrome_frame/chrome_launcher_unittest.cc +++ b/chrome_frame/chrome_launcher_unittest.cc @@ -20,7 +20,7 @@ TEST(ChromeLauncher, IsValidCommandLine) { CommandLine good(FilePath(L"dummy.exe")); good.AppendSwitch(switches::kNoFirstRun); // in whitelist - good.AppendSwitchWithValue(switches::kUserDataDir, "foo"); // in whitelist + good.AppendSwitchASCII(switches::kUserDataDir, "foo"); // in whitelist EXPECT_TRUE(chrome_launcher::IsValidCommandLine( good.command_line_string().c_str())); diff --git a/chrome_frame/chrome_tab.cc b/chrome_frame/chrome_tab.cc index f7ff496..002d700 100644 --- a/chrome_frame/chrome_tab.cc +++ b/chrome_frame/chrome_tab.cc @@ -280,8 +280,8 @@ HRESULT SetupRunOnce() { RegKey run_once; if (run_once.Create(HKEY_CURRENT_USER, kRunOnce, KEY_READ | KEY_WRITE)) { CommandLine run_once_command(chrome_launcher::GetChromeExecutablePath()); - run_once_command.AppendSwitchWithValue( - switches::kAutomationClientChannelID, "0"); + run_once_command.AppendSwitchASCII(switches::kAutomationClientChannelID, + "0"); run_once_command.AppendSwitch(switches::kChromeFrame); run_once.WriteValue(L"A", run_once_command.command_line_string().c_str()); } diff --git a/chrome_frame/test/perf/chrome_frame_perftest.cc b/chrome_frame/test/perf/chrome_frame_perftest.cc index 0b5d5d8..e00e45b 100644 --- a/chrome_frame/test/perf/chrome_frame_perftest.cc +++ b/chrome_frame/test/perf/chrome_frame_perftest.cc @@ -1300,7 +1300,7 @@ bool RunSingleTestOutOfProc(const std::string& test_name) { // Always enable disabled tests. This method is not called with disabled // tests unless this flag was specified to the browser test executable. cmd_line.AppendSwitch("gtest_also_run_disabled_tests"); - cmd_line.AppendSwitchWithValue("gtest_filter", test_name); + cmd_line.AppendSwitchASCII("gtest_filter", test_name); base::ProcessHandle process_handle; if (!base::LaunchApp(cmd_line, false, false, &process_handle)) |