summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/net/process_singleton_subclass.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame/test/net/process_singleton_subclass.cc')
-rw-r--r--chrome_frame/test/net/process_singleton_subclass.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome_frame/test/net/process_singleton_subclass.cc b/chrome_frame/test/net/process_singleton_subclass.cc
index 2206a74..91a3bef 100644
--- a/chrome_frame/test/net/process_singleton_subclass.cc
+++ b/chrome_frame/test/net/process_singleton_subclass.cc
@@ -99,8 +99,7 @@ LRESULT ProcessSingletonSubclass::OnCopyData(HWND hwnd, HWND from_hwnd,
// Get command line.
std::wstring cmd_line(begin, static_cast<size_t>(end - begin));
- CommandLine parsed_command_line(L"");
- parsed_command_line.ParseFromString(cmd_line);
+ CommandLine parsed_command_line = CommandLine::FromString(cmd_line);
std::string channel_id(WideToASCII(parsed_command_line.GetSwitchValue(
switches::kAutomationClientChannelID)));
EXPECT_FALSE(channel_id.empty());