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

Unified Diff: chrome/installer/util/product.cc

Issue 7386002: Rename CommandLine::GetCommandLineString(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge. Created 9 years, 5 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: chrome/installer/util/product.cc
diff --git a/chrome/installer/util/product.cc b/chrome/installer/util/product.cc
index 6d3d44d39ba77ee50c3ef4eeba4b309cb2425a8a..fdbf82d53e2dadfd0f43af3c243008a0180573bc 100644
--- a/chrome/installer/util/product.cc
+++ b/chrome/installer/util/product.cc
@@ -80,15 +80,15 @@ bool Product::LaunchChromeAndWait(const FilePath& application_path,
bool success = false;
STARTUPINFOW si = { sizeof(si) };
PROCESS_INFORMATION pi = {0};
- // Cast away constness of the command_line_string() since CreateProcess
+ // Cast away constness of the GetCommandLineString() since CreateProcess
// might modify the string (insert \0 to separate the program from the
// arguments). Since we're not using the cmd variable beyond this point
// we don't care.
Evan Martin 2011/07/15 21:05:16 This feels pretty dangerous to me; for example, th
msw 2011/07/18 20:59:33 Yeah, this isn't a good practice. I changed this a
if (!::CreateProcess(cmd.GetProgram().value().c_str(),
- const_cast<wchar_t*>(cmd.command_line_string().c_str()),
+ const_cast<wchar_t*>(cmd.GetCommandLineString().c_str()),
NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, NULL,
&si, &pi)) {
- PLOG(ERROR) << "Failed to launch: " << cmd.command_line_string();
+ PLOG(ERROR) << "Failed to launch: " << cmd.GetCommandLineString();
} else {
::CloseHandle(pi.hThread);

Powered by Google App Engine
This is Rietveld 408576698