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

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

Issue 329017: Remove deprecated CommandLine(std::wstring) ctor. (Closed)
Patch Set: Created 11 years, 2 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 8e00ba21c91e77fda94b09472e58ea4ab8d08aa7..6982fa7a8461e30e89f34b26f294142797c786a0 100644
--- a/chrome/installer/util/shell_util.cc
+++ b/chrome/installer/util/shell_util.cc
@@ -301,8 +301,7 @@ bool ElevateAndRegisterChrome(const std::wstring& chrome_exe,
HKEY_CURRENT_USER : HKEY_LOCAL_MACHINE;
RegKey key(reg_root, dist->GetUninstallRegPath().c_str());
key.ReadValue(installer_util::kUninstallStringField, &exe_path);
- CommandLine command_line(L"");
- command_line.ParseFromString(exe_path);
+ CommandLine command_line = CommandLine::FromString(exe_path);
exe_path = command_line.program();
}
if (file_util::PathExists(FilePath::FromWStringHack(exe_path))) {
« no previous file with comments | « chrome/installer/util/google_chrome_distribution.cc ('k') | chrome/test/automation/automation_proxy_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698