summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/install_util.cc
diff options
context:
space:
mode:
authorrahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-11 16:54:26 +0000
committerrahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-11 16:54:26 +0000
commit78b1722653b794a0a68f0cc473fc1855b95517ae (patch)
treed56b107781e612599a0cf04b1745b988645bff9e /chrome/installer/util/install_util.cc
parent4d0cd7ce8c91a2c0157ecf9e0a5153712ff43d10 (diff)
downloadchromium_src-78b1722653b794a0a68f0cc473fc1855b95517ae.zip
chromium_src-78b1722653b794a0a68f0cc473fc1855b95517ae.tar.gz
chromium_src-78b1722653b794a0a68f0cc473fc1855b95517ae.tar.bz2
Cleanup setup.exe:
- Remove various migration code for shortcuts (now 149.13 has been pushed to everybody) - Cleanup error messages that will show up in log file with the default logging level - Remove junk error messages that haven't been helpful at all (delete registry key/valye errors) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@655 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/install_util.cc')
-rw-r--r--chrome/installer/util/install_util.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/chrome/installer/util/install_util.cc b/chrome/installer/util/install_util.cc
index 6424bd6..087589b 100644
--- a/chrome/installer/util/install_util.cc
+++ b/chrome/installer/util/install_util.cc
@@ -40,25 +40,6 @@
#include "chrome/installer/util/google_update_constants.h"
-std::wstring InstallUtil::FormatLastWin32Error() {
- unsigned messageid = GetLastError();
- wchar_t* string_buffer = NULL;
- unsigned string_length = ::FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
- FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL, messageid, 0, reinterpret_cast<wchar_t *>(&string_buffer), 0, NULL);
-
- std::wstring formatted_string;
- if (string_buffer) {
- formatted_string = string_buffer;
- LocalFree(reinterpret_cast<HLOCAL>(string_buffer));
- } else {
- // The formating failed. simply convert the message value into a string.
- SStringPrintf(&formatted_string, L"message number %d", messageid);
- }
- return formatted_string;
-}
-
-
std::wstring InstallUtil::GetChromeGoogleUpdateKey() {
std::wstring chrome_google_update_key(google_update::kRegPathClients);
chrome_google_update_key.append(L"\\");