| Index: chrome/installer/util/install_util.cc
|
| ===================================================================
|
| --- chrome/installer/util/install_util.cc (revision 74952)
|
| +++ chrome/installer/util/install_util.cc (working copy)
|
| @@ -263,3 +263,17 @@
|
| *command_line = CommandLine::FromString(command);
|
| }
|
| }
|
| +
|
| +std::wstring InstallUtil::GetCurrentDate() {
|
| + static const wchar_t kDateFormat[] = L"yyyyMMdd";
|
| + wchar_t date_str[arraysize(kDateFormat)] = {0};
|
| + int len = GetDateFormatW(LOCALE_INVARIANT, 0, NULL, kDateFormat,
|
| + date_str, arraysize(date_str));
|
| + if (len) {
|
| + --len; // Subtract terminating \0.
|
| + } else {
|
| + PLOG(DFATAL) << "GetDateFormat";
|
| + }
|
| +
|
| + return std::wstring(date_str, len);
|
| +}
|
|
|