| 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 #ifndef CHROME_COMMON_CHROME_VERSION_INFO_H_ | 5 #ifndef CHROME_COMMON_CHROME_VERSION_INFO_H_ |
| 6 #define CHROME_COMMON_CHROME_VERSION_INFO_H_ | 6 #define CHROME_COMMON_CHROME_VERSION_INFO_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // GetVersionStringModifier() is intended to be used for display purposes. | 65 // GetVersionStringModifier() is intended to be used for display purposes. |
| 66 // To simply test the channel, use GetChannel(). | 66 // To simply test the channel, use GetChannel(). |
| 67 static std::string GetVersionStringModifier(); | 67 static std::string GetVersionStringModifier(); |
| 68 | 68 |
| 69 // Returns the channel for the installation. In branded builds, this will be | 69 // Returns the channel for the installation. In branded builds, this will be |
| 70 // CHANNEL_STABLE, CHANNEL_BETA, CHANNEL_DEV, or CHANNEL_CANARY. In unbranded | 70 // CHANNEL_STABLE, CHANNEL_BETA, CHANNEL_DEV, or CHANNEL_CANARY. In unbranded |
| 71 // builds, or in branded builds when the channel cannot be determined, this | 71 // builds, or in branded builds when the channel cannot be determined, this |
| 72 // will be CHANNEL_UNKNOWN. | 72 // will be CHANNEL_UNKNOWN. |
| 73 static Channel GetChannel(); | 73 static Channel GetChannel(); |
| 74 | 74 |
| 75 // Returns a version string to be displayed in "About Chromium" dialog. |
| 76 std::string CreateVersionString() const; |
| 77 |
| 75 private: | 78 private: |
| 76 #if defined(OS_WIN) || defined(OS_MACOSX) | 79 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 77 scoped_ptr<FileVersionInfo> version_info_; | 80 scoped_ptr<FileVersionInfo> version_info_; |
| 78 #endif | 81 #endif |
| 79 | 82 |
| 80 DISALLOW_COPY_AND_ASSIGN(VersionInfo); | 83 DISALLOW_COPY_AND_ASSIGN(VersionInfo); |
| 81 }; | 84 }; |
| 82 | 85 |
| 83 } // namespace chrome | 86 } // namespace chrome |
| 84 | 87 |
| 85 #endif // CHROME_COMMON_CHROME_VERSION_INFO_H_ | 88 #endif // CHROME_COMMON_CHROME_VERSION_INFO_H_ |
| OLD | NEW |