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: chrome/common/chrome_version_info.h

Issue 7104106: Unify the version string to be displayed on "About Chromium" dialog. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Update how to construct webkit_url Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/about_chrome_dialog.cc ('k') | chrome/common/chrome_version_info.cc » ('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) 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/about_chrome_dialog.cc ('k') | chrome/common/chrome_version_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698