summaryrefslogtreecommitdiffstats
path: root/base/file_version_info_linux.cc
diff options
context:
space:
mode:
authormmoss@chromium.org <mmoss@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-24 20:07:45 +0000
committermmoss@chromium.org <mmoss@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-24 20:07:45 +0000
commit8a0098f59d6170cf0050d3ebd25b45ee77919137 (patch)
tree12f7fc56463fac407303d5f5d2b4ce6bbdb05e80 /base/file_version_info_linux.cc
parentd511f8444a98574e343d56fd4fda22b0f5c83a84 (diff)
downloadchromium_src-8a0098f59d6170cf0050d3ebd25b45ee77919137.zip
chromium_src-8a0098f59d6170cf0050d3ebd25b45ee77919137.tar.gz
chromium_src-8a0098f59d6170cf0050d3ebd25b45ee77919137.tar.bz2
Include version information in Linux chrome.
This makes use of, and scons-enables, the Linux version header in Issue 45028. BUG=8132 Review URL: http://codereview.chromium.org/42542 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_version_info_linux.cc')
-rw-r--r--base/file_version_info_linux.cc39
1 files changed, 19 insertions, 20 deletions
diff --git a/base/file_version_info_linux.cc b/base/file_version_info_linux.cc
index 59d425a..55e1bd2 100644
--- a/base/file_version_info_linux.cc
+++ b/base/file_version_info_linux.cc
@@ -3,13 +3,12 @@
// found in the LICENSE file.
#include "base/file_version_info.h"
+#include "base/file_version_info_linux.h"
#include <string>
-// TODO(port): This whole file is stubbed. We can't return NULL
-// because that is used as a catastrophic error code where the file
-// doesn't exist or can't be opened.
-//
+// TODO(mmoss) This only provides version info for the current binary, but it's
+// also called for arbitrary files (e.g. plugins).
// See http://code.google.com/p/chromium/issues/detail?id=8132 for a discussion
// on what we should do with this module.
@@ -23,65 +22,65 @@ FileVersionInfo* FileVersionInfo::CreateFileVersionInfoForCurrentModule() {
}
std::wstring FileVersionInfo::company_name() {
- return L"";
+ return COMPANY_NAME;
}
std::wstring FileVersionInfo::company_short_name() {
- return L"";
+ return COMPANY_SHORT_NAME;
}
std::wstring FileVersionInfo::product_name() {
- return L"";
+ return PRODUCT_NAME;
}
std::wstring FileVersionInfo::product_short_name() {
- return L"";
+ return PRODUCT_SHORT_NAME;
}
std::wstring FileVersionInfo::internal_name() {
- return L"";
+ return INTERNAL_NAME;
}
std::wstring FileVersionInfo::product_version() {
- return L"0.1.2.3.4.5.6-lie";
+ return PRODUCT_VERSION;
}
std::wstring FileVersionInfo::private_build() {
- return L"";
+ return PRIVATE_BUILD;
}
std::wstring FileVersionInfo::special_build() {
- return L"";
+ return SPECIAL_BUILD;
}
std::wstring FileVersionInfo::comments() {
- return L"";
+ return COMMENTS;
}
std::wstring FileVersionInfo::original_filename() {
- return L"";
+ return ORIGINAL_FILENAME;
}
std::wstring FileVersionInfo::file_description() {
- return L"";
+ return FILE_DESCRIPTION;
}
std::wstring FileVersionInfo::file_version() {
- return L"0.1.2.3.4.5.6-lie";
+ return FILE_VERSION;
}
std::wstring FileVersionInfo::legal_copyright() {
- return L"";
+ return LEGAL_COPYRIGHT;
}
std::wstring FileVersionInfo::legal_trademarks() {
- return L"";
+ return LEGAL_TRADEMARKS;
}
std::wstring FileVersionInfo::last_change() {
- return L"Last Thursday";
+ return LAST_CHANGE;
}
bool FileVersionInfo::is_official_build() {
- return false;
+ return OFFICIAL_BUILD;
}