Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2848)

Unified Diff: chrome_frame/test/net/process_singleton_subclass.cc

Issue 3057033: Remove GetSwitchValue() from chrome/* where easy. (Closed)
Patch Set: finally Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome_frame/test/net/process_singleton_subclass.cc
diff --git a/chrome_frame/test/net/process_singleton_subclass.cc b/chrome_frame/test/net/process_singleton_subclass.cc
index 2046e0b59ff865c91dae42beb0cd6ddee6ff707f..81e68e4af0e18c001d6d53db0cbf8b29f74dec9b 100644
--- a/chrome_frame/test/net/process_singleton_subclass.cc
+++ b/chrome_frame/test/net/process_singleton_subclass.cc
@@ -100,8 +100,9 @@ LRESULT ProcessSingletonSubclass::OnCopyData(HWND hwnd, HWND from_hwnd,
std::wstring cmd_line(begin, static_cast<size_t>(end - begin));
CommandLine parsed_command_line = CommandLine::FromString(cmd_line);
- std::string channel_id(WideToASCII(parsed_command_line.GetSwitchValue(
- switches::kAutomationClientChannelID)));
+ std::string channel_id =
+ parsed_command_line.GetSwitchValueASCII(
+ switches::kAutomationClientChannelID);
tony 2010/08/06 00:09:38 Nit: This can probably fit on 2 lines.
EXPECT_FALSE(channel_id.empty());
delegate_->OnConnectAutomationProviderToChannel(channel_id);

Powered by Google App Engine
This is Rietveld 408576698