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

Unified Diff: base/command_line.cc

Issue 183853011: Move TrimWhitespace to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | « ash/shell/app_list.cc ('k') | base/i18n/file_util_icu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/command_line.cc
diff --git a/base/command_line.cc b/base/command_line.cc
index cf36cabd32937bd0922064573daad15eecf7787e..eb3da4b81a870ff3ed7488a9ed2886ad0f261a16 100644
--- a/base/command_line.cc
+++ b/base/command_line.cc
@@ -74,7 +74,7 @@ void AppendSwitchesAndArguments(CommandLine& command_line,
bool parse_switches = true;
for (size_t i = 1; i < argv.size(); ++i) {
CommandLine::StringType arg = argv[i];
- TrimWhitespace(arg, TRIM_ALL, &arg);
+ base::TrimWhitespace(arg, base::TRIM_ALL, &arg);
CommandLine::StringType switch_string;
CommandLine::StringType switch_value;
@@ -293,7 +293,7 @@ FilePath CommandLine::GetProgram() const {
}
void CommandLine::SetProgram(const FilePath& program) {
- TrimWhitespace(program.value(), TRIM_ALL, &argv_[0]);
+ base::TrimWhitespace(program.value(), base::TRIM_ALL, &argv_[0]);
}
bool CommandLine::HasSwitch(const std::string& switch_string) const {
@@ -422,7 +422,7 @@ void CommandLine::PrependWrapper(const CommandLine::StringType& wrapper) {
#if defined(OS_WIN)
void CommandLine::ParseFromString(const std::wstring& command_line) {
std::wstring command_line_string;
- TrimWhitespace(command_line, TRIM_ALL, &command_line_string);
+ base::TrimWhitespace(command_line, base::TRIM_ALL, &command_line_string);
if (command_line_string.empty())
return;
« no previous file with comments | « ash/shell/app_list.cc ('k') | base/i18n/file_util_icu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698