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

Unified Diff: shell/command_line_util.cc

Issue 1045893004: Remove is_win/OS_WIN checks in shell code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « shell/child_process_host.cc ('k') | shell/domain_socket/net_errors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/command_line_util.cc
diff --git a/shell/command_line_util.cc b/shell/command_line_util.cc
index 0a307f676303c9632953b77b1c699bd4299cea72..3c6de7def3156db14ffe9fdaed1752bc44d1aaf3 100644
--- a/shell/command_line_util.cc
+++ b/shell/command_line_util.cc
@@ -73,13 +73,7 @@ void ApplyApplicationArgs(Context* context, const std::string& args) {
void RunCommandLineApps(Context* context) {
const auto& command_line = *base::CommandLine::ForCurrentProcess();
for (const auto& arg : command_line.GetArgs()) {
- std::string arg2;
-#if defined(OS_WIN)
- arg2 = base::UTF16ToUTF8(arg);
-#else
- arg2 = arg;
-#endif
- GURL url = GetAppURLAndSetArgs(arg2, context);
+ GURL url = GetAppURLAndSetArgs(arg, context);
if (!url.is_valid())
return;
context->Run(url);
« no previous file with comments | « shell/child_process_host.cc ('k') | shell/domain_socket/net_errors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698