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

Unified Diff: base/command_line.cc

Issue 1997153002: libchrome: Several upstreamable fixes from libchrome Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Also fix unit tests Created 4 years, 7 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: base/command_line.cc
diff --git a/base/command_line.cc b/base/command_line.cc
index c991959d6911bf545f994b3e6d0833f793cc7cf0..44d8ffea0e7e106061c8d602db8c9fc310f564c7 100644
--- a/base/command_line.cc
+++ b/base/command_line.cc
@@ -149,7 +149,7 @@ string16 QuoteForCommandLineToArgvW(const string16& arg,
} // namespace
-CommandLine::CommandLine(NoProgram no_program)
+CommandLine::CommandLine(NoProgram /* no_program */)
danakj 2016/05/23 02:59:54 Just remove the name https://google.github.io/sty
Luis Héctor Chávez 2016/05/24 15:27:52 Done.
: argv_(1),
begin_args_(1) {
}
@@ -444,6 +444,10 @@ CommandLine::StringType CommandLine::GetCommandLineStringInternal(
CommandLine::StringType CommandLine::GetArgumentsStringInternal(
bool quote_placeholders) const {
+#if !defined(OS_WIN)
+ // Avoid an unused warning.
+ (void)quote_placeholders;
+#endif
StringType params;
// Append switches and arguments.
bool parse_switches = true;
« no previous file with comments | « base/bind_unittest.cc ('k') | base/debug/alias.cc » ('j') | base/debug/alias.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698