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

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

Issue 3057033: Remove GetSwitchValue() from chrome/* where easy. (Closed)
Patch Set: finally Created 10 years, 4 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/google_chrome_distribution.cc
diff --git a/chrome/installer/util/google_chrome_distribution.cc b/chrome/installer/util/google_chrome_distribution.cc
index 15e1d2a055c58bf7d252fc583d95c01bd6cf0c8f..8a2069dfed8176b2225b419aea392a660a9aec76 100644
--- a/chrome/installer/util/google_chrome_distribution.cc
+++ b/chrome/installer/util/google_chrome_distribution.cc
@@ -129,10 +129,10 @@ int GetDirectoryWriteAgeInHours(const wchar_t* path) {
// Launches again this same process with switch --|flag|=|value|.
// If system_level_toast is true, appends --system-level-toast.
// Does not wait for the process to terminate.
-bool RelaunchSetup(const std::wstring& flag, int value,
+bool RelaunchSetup(const std::string& flag, int value,
bool system_level_toast) {
CommandLine cmd_line(CommandLine::ForCurrentProcess()->GetProgram());
- cmd_line.AppendSwitchASCII(WideToASCII(flag), base::IntToString(value));
+ cmd_line.AppendSwitchASCII(flag, base::IntToString(value));
if (system_level_toast)
cmd_line.AppendSwitch(
WideToASCII(installer_util::switches::kSystemLevelToast));

Powered by Google App Engine
This is Rietveld 408576698