Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: base/file_version_info_linux.cc

Issue 1560027: Refactor FileVersionInfo into an interface with platform implementations. (Closed)
Patch Set: comments Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/file_version_info.h ('k') | base/file_version_info_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/file_version_info.h"
6 #include "base/file_version_info_linux.h"
7
8 #include <string>
9
10 // TODO(mmoss) This only provides version info for the current binary, but it's
11 // also called for arbitrary files (e.g. plugins).
12 // See http://code.google.com/p/chromium/issues/detail?id=8132 for a discussion
13 // on what we should do with this module.
14
15 FileVersionInfo::FileVersionInfo() {}
16
17 FileVersionInfo::~FileVersionInfo() {}
18
19 // static
20 FileVersionInfo* FileVersionInfo::CreateFileVersionInfoForCurrentModule() {
21 return new FileVersionInfo();
22 }
23
24 std::wstring FileVersionInfo::company_name() {
25 return COMPANY_NAME;
26 }
27
28 std::wstring FileVersionInfo::company_short_name() {
29 return COMPANY_SHORT_NAME;
30 }
31
32 std::wstring FileVersionInfo::product_name() {
33 return PRODUCT_NAME;
34 }
35
36 std::wstring FileVersionInfo::product_short_name() {
37 return PRODUCT_SHORT_NAME;
38 }
39
40 std::wstring FileVersionInfo::internal_name() {
41 return INTERNAL_NAME;
42 }
43
44 std::wstring FileVersionInfo::product_version() {
45 return PRODUCT_VERSION;
46 }
47
48 std::wstring FileVersionInfo::private_build() {
49 return PRIVATE_BUILD;
50 }
51
52 std::wstring FileVersionInfo::special_build() {
53 return SPECIAL_BUILD;
54 }
55
56 std::wstring FileVersionInfo::comments() {
57 return COMMENTS;
58 }
59
60 std::wstring FileVersionInfo::original_filename() {
61 return ORIGINAL_FILENAME;
62 }
63
64 std::wstring FileVersionInfo::file_description() {
65 return FILE_DESCRIPTION;
66 }
67
68 std::wstring FileVersionInfo::file_version() {
69 return FILE_VERSION;
70 }
71
72 std::wstring FileVersionInfo::legal_copyright() {
73 return LEGAL_COPYRIGHT;
74 }
75
76 std::wstring FileVersionInfo::legal_trademarks() {
77 return LEGAL_TRADEMARKS;
78 }
79
80 std::wstring FileVersionInfo::last_change() {
81 return LAST_CHANGE;
82 }
83
84 bool FileVersionInfo::is_official_build() {
85 return OFFICIAL_BUILD;
86 }
OLDNEW
« no previous file with comments | « base/file_version_info.h ('k') | base/file_version_info_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698