summaryrefslogtreecommitdiffstats
path: root/base/file_version_info_linux.cc
blob: 55e1bd204bd7ff0931891d4b68261ca360daabcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// Copyright (c) 2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/file_version_info.h"
#include "base/file_version_info_linux.h"

#include <string>

// 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.

FileVersionInfo::FileVersionInfo() {}

FileVersionInfo::~FileVersionInfo() {}

// static
FileVersionInfo* FileVersionInfo::CreateFileVersionInfoForCurrentModule() {
  return new FileVersionInfo();
}

std::wstring FileVersionInfo::company_name() {
  return COMPANY_NAME;
}

std::wstring FileVersionInfo::company_short_name() {
  return COMPANY_SHORT_NAME;
}

std::wstring FileVersionInfo::product_name() {
  return PRODUCT_NAME;
}

std::wstring FileVersionInfo::product_short_name() {
  return PRODUCT_SHORT_NAME;
}

std::wstring FileVersionInfo::internal_name() {
  return INTERNAL_NAME;
}

std::wstring FileVersionInfo::product_version() {
  return PRODUCT_VERSION;
}

std::wstring FileVersionInfo::private_build() {
  return PRIVATE_BUILD;
}

std::wstring FileVersionInfo::special_build() {
  return SPECIAL_BUILD;
}

std::wstring FileVersionInfo::comments() {
  return COMMENTS;
}

std::wstring FileVersionInfo::original_filename() {
  return ORIGINAL_FILENAME;
}

std::wstring FileVersionInfo::file_description() {
  return FILE_DESCRIPTION;
}

std::wstring FileVersionInfo::file_version() {
  return FILE_VERSION;
}

std::wstring FileVersionInfo::legal_copyright() {
  return LEGAL_COPYRIGHT;
}

std::wstring FileVersionInfo::legal_trademarks() {
  return LEGAL_TRADEMARKS;
}

std::wstring FileVersionInfo::last_change() {
  return LAST_CHANGE;
}

bool FileVersionInfo::is_official_build() {
  return OFFICIAL_BUILD;
}