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

Side by Side Diff: chrome/installer/util/channel_info.h

Issue 6288009: More installer refactoring in the interest of fixing some bugs and cleaning t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_INSTALLER_UTIL_CHANNEL_INFO_H_ 5 #ifndef CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_
6 #define CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_ 6 #define CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 23 matching lines...) Expand all
34 bool Equals(const ChannelInfo& other) const { 34 bool Equals(const ChannelInfo& other) const {
35 return value_ == other.value_; 35 return value_ == other.value_;
36 } 36 }
37 37
38 // Determines the update channel for the value. Possible |channel_name| 38 // Determines the update channel for the value. Possible |channel_name|
39 // results are the empty string (stable channel), "beta", and "dev". Returns 39 // results are the empty string (stable channel), "beta", and "dev". Returns
40 // false (without modifying |channel_name|) if the channel could not be 40 // false (without modifying |channel_name|) if the channel could not be
41 // determined. 41 // determined.
42 bool GetChannelName(std::wstring* channel_name) const; 42 bool GetChannelName(std::wstring* channel_name) const;
43 43
44 // Returns true if this object and |other| have a common base (that which
45 // remains when all modifiers and suffixes are omitted).
46 bool EqualsBaseOf(const ChannelInfo& other) const;
47
44 // Returns true if the -CEEE modifier is present in the value. 48 // Returns true if the -CEEE modifier is present in the value.
45 bool IsCeee() const; 49 bool IsCeee() const;
46 50
47 // Adds or removes the -CEEE modifier, returning true if the value is 51 // Adds or removes the -CEEE modifier, returning true if the value is
48 // modified. 52 // modified.
49 bool SetCeee(bool value); 53 bool SetCeee(bool value);
50 54
51 // Returns true if the -chrome modifier is present in the value. 55 // Returns true if the -chrome modifier is present in the value.
52 bool IsChrome() const; 56 bool IsChrome() const;
53 57
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // modified. 94 // modified.
91 bool SetMultiFailSuffix(bool value); 95 bool SetMultiFailSuffix(bool value);
92 96
93 private: 97 private:
94 std::wstring value_; 98 std::wstring value_;
95 }; // class ChannelInfo 99 }; // class ChannelInfo
96 100
97 } // namespace installer 101 } // namespace installer
98 102
99 #endif // CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_ 103 #endif // CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/browser_distribution_unittest.cc ('k') | chrome/installer/util/channel_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698