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

Side by Side Diff: base/file_version_info_linux.cc

Issue 42542: Include version information in Linux chrome. (Closed)
Patch Set: enabled AlwaysBuild Created 11 years, 9 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/base.scons ('k') | chrome/tools/build/linux/version.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. 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 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 "base/file_version_info.h" 5 #include "base/file_version_info.h"
6 #include "base/file_version_info_linux.h"
6 7
7 #include <string> 8 #include <string>
8 9
9 // TODO(port): This whole file is stubbed. We can't return NULL 10 // TODO(mmoss) This only provides version info for the current binary, but it's
10 // because that is used as a catastrophic error code where the file 11 // also called for arbitrary files (e.g. plugins).
11 // doesn't exist or can't be opened.
12 //
13 // See http://code.google.com/p/chromium/issues/detail?id=8132 for a discussion 12 // See http://code.google.com/p/chromium/issues/detail?id=8132 for a discussion
14 // on what we should do with this module. 13 // on what we should do with this module.
15 14
16 FileVersionInfo::FileVersionInfo() {} 15 FileVersionInfo::FileVersionInfo() {}
17 16
18 FileVersionInfo::~FileVersionInfo() {} 17 FileVersionInfo::~FileVersionInfo() {}
19 18
20 // static 19 // static
21 FileVersionInfo* FileVersionInfo::CreateFileVersionInfoForCurrentModule() { 20 FileVersionInfo* FileVersionInfo::CreateFileVersionInfoForCurrentModule() {
22 return new FileVersionInfo(); 21 return new FileVersionInfo();
23 } 22 }
24 23
25 std::wstring FileVersionInfo::company_name() { 24 std::wstring FileVersionInfo::company_name() {
26 return L""; 25 return COMPANY_NAME;
27 } 26 }
28 27
29 std::wstring FileVersionInfo::company_short_name() { 28 std::wstring FileVersionInfo::company_short_name() {
30 return L""; 29 return COMPANY_SHORT_NAME;
31 } 30 }
32 31
33 std::wstring FileVersionInfo::product_name() { 32 std::wstring FileVersionInfo::product_name() {
34 return L""; 33 return PRODUCT_NAME;
35 } 34 }
36 35
37 std::wstring FileVersionInfo::product_short_name() { 36 std::wstring FileVersionInfo::product_short_name() {
38 return L""; 37 return PRODUCT_SHORT_NAME;
39 } 38 }
40 39
41 std::wstring FileVersionInfo::internal_name() { 40 std::wstring FileVersionInfo::internal_name() {
42 return L""; 41 return INTERNAL_NAME;
43 } 42 }
44 43
45 std::wstring FileVersionInfo::product_version() { 44 std::wstring FileVersionInfo::product_version() {
46 return L"0.1.2.3.4.5.6-lie"; 45 return PRODUCT_VERSION;
47 } 46 }
48 47
49 std::wstring FileVersionInfo::private_build() { 48 std::wstring FileVersionInfo::private_build() {
50 return L""; 49 return PRIVATE_BUILD;
51 } 50 }
52 51
53 std::wstring FileVersionInfo::special_build() { 52 std::wstring FileVersionInfo::special_build() {
54 return L""; 53 return SPECIAL_BUILD;
55 } 54 }
56 55
57 std::wstring FileVersionInfo::comments() { 56 std::wstring FileVersionInfo::comments() {
58 return L""; 57 return COMMENTS;
59 } 58 }
60 59
61 std::wstring FileVersionInfo::original_filename() { 60 std::wstring FileVersionInfo::original_filename() {
62 return L""; 61 return ORIGINAL_FILENAME;
63 } 62 }
64 63
65 std::wstring FileVersionInfo::file_description() { 64 std::wstring FileVersionInfo::file_description() {
66 return L""; 65 return FILE_DESCRIPTION;
67 } 66 }
68 67
69 std::wstring FileVersionInfo::file_version() { 68 std::wstring FileVersionInfo::file_version() {
70 return L"0.1.2.3.4.5.6-lie"; 69 return FILE_VERSION;
71 } 70 }
72 71
73 std::wstring FileVersionInfo::legal_copyright() { 72 std::wstring FileVersionInfo::legal_copyright() {
74 return L""; 73 return LEGAL_COPYRIGHT;
75 } 74 }
76 75
77 std::wstring FileVersionInfo::legal_trademarks() { 76 std::wstring FileVersionInfo::legal_trademarks() {
78 return L""; 77 return LEGAL_TRADEMARKS;
79 } 78 }
80 79
81 std::wstring FileVersionInfo::last_change() { 80 std::wstring FileVersionInfo::last_change() {
82 return L"Last Thursday"; 81 return LAST_CHANGE;
83 } 82 }
84 83
85 bool FileVersionInfo::is_official_build() { 84 bool FileVersionInfo::is_official_build() {
86 return false; 85 return OFFICIAL_BUILD;
87 } 86 }
OLDNEW
« no previous file with comments | « base/base.scons ('k') | chrome/tools/build/linux/version.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698