| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // See the corresponding header file for description of the functions in this | 5 // See the corresponding header file for description of the functions in this |
| 6 // file. | 6 // file. |
| 7 | 7 |
| 8 #include "chrome/installer/util/install_util.h" | 8 #include "chrome/installer/util/install_util.h" |
| 9 | 9 |
| 10 #include <shellapi.h> | 10 #include <shellapi.h> |
| 11 #include <shlobj.h> | 11 #include <shlobj.h> |
| 12 #include <shlwapi.h> | 12 #include <shlwapi.h> |
| 13 | 13 |
| 14 #include <algorithm> | 14 #include <algorithm> |
| 15 | 15 |
| 16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
| 17 #include "base/file_util.h" | 17 #include "base/file_util.h" |
| 18 #include "base/json/json_value_serializer.h" | |
| 19 #include "base/logging.h" | 18 #include "base/logging.h" |
| 20 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
| 21 #include "base/path_service.h" | 20 #include "base/path_service.h" |
| 22 #include "base/string_util.h" | 21 #include "base/string_util.h" |
| 23 #include "base/sys_info.h" | 22 #include "base/sys_info.h" |
| 24 #include "base/values.h" | 23 #include "base/values.h" |
| 25 #include "base/version.h" | 24 #include "base/version.h" |
| 26 #include "base/win/registry.h" | 25 #include "base/win/registry.h" |
| 27 #include "base/win/windows_version.h" | 26 #include "base/win/windows_version.h" |
| 28 #include "chrome/installer/util/browser_distribution.h" | 27 #include "chrome/installer/util/browser_distribution.h" |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 int len = GetDateFormatW(LOCALE_INVARIANT, 0, NULL, kDateFormat, | 470 int len = GetDateFormatW(LOCALE_INVARIANT, 0, NULL, kDateFormat, |
| 472 date_str, arraysize(date_str)); | 471 date_str, arraysize(date_str)); |
| 473 if (len) { | 472 if (len) { |
| 474 --len; // Subtract terminating \0. | 473 --len; // Subtract terminating \0. |
| 475 } else { | 474 } else { |
| 476 PLOG(DFATAL) << "GetDateFormat"; | 475 PLOG(DFATAL) << "GetDateFormat"; |
| 477 } | 476 } |
| 478 | 477 |
| 479 return std::wstring(date_str, len); | 478 return std::wstring(date_str, len); |
| 480 } | 479 } |
| OLD | NEW |