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

Side by Side Diff: chrome/installer/util/install_util.h

Issue 6532037: Merge 75305 - Switch from wcsftime to GetDateFormat to avoid crash in setup.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/648/src/
Patch Set: Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/installer/setup/install_worker.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file declares utility functions for the installer. The original reason 5 // This file declares utility functions for the installer. The original reason
6 // for putting these functions in installer\util library is so that we can 6 // for putting these functions in installer\util library is so that we can
7 // separate out the critical logic and write unit tests for it. 7 // separate out the critical logic and write unit tests for it.
8 8
9 #ifndef CHROME_INSTALLER_UTIL_INSTALL_UTIL_H__ 9 #ifndef CHROME_INSTALLER_UTIL_INSTALL_UTIL_H__
10 #define CHROME_INSTALLER_UTIL_INSTALL_UTIL_H__ 10 #define CHROME_INSTALLER_UTIL_INSTALL_UTIL_H__
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 const std::wstring& key_path); 100 const std::wstring& key_path);
101 101
102 // Deletes the registry value named value_name at path key_path under the key 102 // Deletes the registry value named value_name at path key_path under the key
103 // given by reg_root. 103 // given by reg_root.
104 static bool DeleteRegistryValue(HKEY reg_root, const std::wstring& key_path, 104 static bool DeleteRegistryValue(HKEY reg_root, const std::wstring& key_path,
105 const std::wstring& value_name); 105 const std::wstring& value_name);
106 106
107 // Returns zero on install success, or an InstallStatus value otherwise. 107 // Returns zero on install success, or an InstallStatus value otherwise.
108 static int GetInstallReturnCode(installer::InstallStatus install_status); 108 static int GetInstallReturnCode(installer::InstallStatus install_status);
109 109
110 // Returns a string in the form YYYYMMDD of the current date.
111 static std::wstring GetCurrentDate();
112
110 private: 113 private:
111 DISALLOW_COPY_AND_ASSIGN(InstallUtil); 114 DISALLOW_COPY_AND_ASSIGN(InstallUtil);
112 }; 115 };
113 116
114 117
115 #endif // CHROME_INSTALLER_UTIL_INSTALL_UTIL_H__ 118 #endif // CHROME_INSTALLER_UTIL_INSTALL_UTIL_H__
OLDNEW
« no previous file with comments | « chrome/installer/setup/install_worker.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698