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

Side by Side Diff: chrome/common/chrome_version_info.h

Issue 8883043: Chrome version info getter for Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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
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 #if defined(OS_CHROMEOS)
76 // Sets channel before use.
77 static void SetChannel(const std::string& channel);
78 #endif
79
75 // Returns a version string to be displayed in "About Chromium" dialog. 80 // Returns a version string to be displayed in "About Chromium" dialog.
76 std::string CreateVersionString() const; 81 std::string CreateVersionString() const;
77 82
78 private: 83 private:
79 #if defined(OS_WIN) || defined(OS_MACOSX) 84 #if defined(OS_WIN) || defined(OS_MACOSX)
80 scoped_ptr<FileVersionInfo> version_info_; 85 scoped_ptr<FileVersionInfo> version_info_;
81 #endif 86 #endif
82 87
83 DISALLOW_COPY_AND_ASSIGN(VersionInfo); 88 DISALLOW_COPY_AND_ASSIGN(VersionInfo);
84 }; 89 };
85 90
86 } // namespace chrome 91 } // namespace chrome
87 92
88 #endif // CHROME_COMMON_CHROME_VERSION_INFO_H_ 93 #endif // CHROME_COMMON_CHROME_VERSION_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698