OLD | NEW |
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 #include "chrome/common/chrome_version_info.h" | 5 #include "chrome/common/chrome_version_info.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/file_version_info.h" | 8 #include "base/file_version_info.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/thread_restrictions.h" | 10 #include "base/threading/thread_restrictions.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 | 12 |
13 namespace chrome { | 13 namespace chrome { |
14 | 14 |
15 #if defined(OS_WIN) || defined(OS_MACOSX) | 15 #if defined(OS_WIN) || defined(OS_MACOSX) |
16 // On Windows and Mac, we get the Chrome version info by querying | 16 // On Windows and Mac, we get the Chrome version info by querying |
17 // FileVersionInfo for the current module. | 17 // FileVersionInfo for the current module. |
18 | 18 |
19 VersionInfo::VersionInfo() { | 19 VersionInfo::VersionInfo() { |
20 // The current module is already loaded in memory, so this will be cheap. | 20 // The current module is already loaded in memory, so this will be cheap. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 return LAST_CHANGE; | 81 return LAST_CHANGE; |
82 } | 82 } |
83 | 83 |
84 bool VersionInfo::IsOfficialBuild() const { | 84 bool VersionInfo::IsOfficialBuild() const { |
85 return OFFICIAL_BUILD; | 85 return OFFICIAL_BUILD; |
86 } | 86 } |
87 | 87 |
88 #endif | 88 #endif |
89 | 89 |
90 } // namespace chrome | 90 } // namespace chrome |
OLD | NEW |