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

Unified Diff: chrome/browser/web_applications/web_app_win.cc

Issue 702803002: Fixed command-line to app shim in Windows app file association. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@win-file-associate
Patch Set: Created 6 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/web_applications/web_app_win.cc
diff --git a/chrome/browser/web_applications/web_app_win.cc b/chrome/browser/web_applications/web_app_win.cc
index a393a2039f488e60a05aeb0f78f22b4e19ace5fc..e9688bd17a1abfdcd7fc5135a629b1a29e5e42fa 100644
--- a/chrome/browser/web_applications/web_app_win.cc
+++ b/chrome/browser/web_applications/web_app_win.cc
@@ -427,8 +427,8 @@ base::CommandLine GetAppShimCommandLine(const base::FilePath& app_shim_path,
shim_cmd_line.AppendSwitch(installer::switches::kChromeSxS);
// Ensure all subsequent switches are treated as args to the shim.
shim_cmd_line.AppendArg("--");
- for (const auto& arg : chrome_cmd_line.GetArgs())
- shim_cmd_line.AppendArgNative(arg);
+ for (size_t i = 1; i < chrome_cmd_line.argv().size(); ++i)
Matt Giuca 2014/11/05 06:45:12 Note: The old code was calling GetArgs(), which re
+ shim_cmd_line.AppendArgNative(chrome_cmd_line.argv()[i]);
return shim_cmd_line;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698