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

Unified Diff: chrome/installer/util/shell_util.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/shell_util.cc
diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc
index 66b6382fcd8cfc6909b945031528595a8091bd28..56685ad4de6587e55496fdf58a0c7d4d3fcff6f0 100644
--- a/chrome/installer/util/shell_util.cc
+++ b/chrome/installer/util/shell_util.cc
@@ -309,11 +309,13 @@ bool ElevateAndRegisterChrome(const std::wstring& chrome_exe,
}
if (file_util::PathExists(FilePath::FromWStringHack(exe_path))) {
std::wstring params(L"--");
- params.append(installer_util::switches::kRegisterChromeBrowser);
+ params.append(
+ ASCIIToWide(installer_util::switches::kRegisterChromeBrowser));
params.append(L"=\"" + chrome_exe + L"\"");
if (!suffix.empty()) {
params.append(L" --");
- params.append(installer_util::switches::kRegisterChromeBrowserSuffix);
+ params.append(ASCIIToWide(
+ installer_util::switches::kRegisterChromeBrowserSuffix));
params.append(L"=\"" + suffix + L"\"");
}

Powered by Google App Engine
This is Rietveld 408576698