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

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

Issue 10818021: Revert 147650 - Implement installation of the Chrome App Host. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1215/src/
Patch Set: Created 8 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/installer/setup/uninstall.cc ('k') | chrome/installer/util/browser_distribution.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file declares a class that contains various method related to branding. 5 // This file declares a class that contains various method related to branding.
6 6
7 #ifndef CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ 7 #ifndef CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_
8 #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ 8 #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 11 matching lines...) Expand all
22 namespace installer { 22 namespace installer {
23 class Product; 23 class Product;
24 } 24 }
25 25
26 class BrowserDistribution { 26 class BrowserDistribution {
27 public: 27 public:
28 enum Type { 28 enum Type {
29 CHROME_BROWSER, 29 CHROME_BROWSER,
30 CHROME_FRAME, 30 CHROME_FRAME,
31 CHROME_BINARIES, 31 CHROME_BINARIES,
32 CHROME_APP_HOST,
33 NUM_TYPES 32 NUM_TYPES
34 }; 33 };
35 34
36 // A struct for communicating what a UserExperiment contains. In these 35 // A struct for communicating what a UserExperiment contains. In these
37 // experiments we show toasts to the user if they are inactive for a certain 36 // experiments we show toasts to the user if they are inactive for a certain
38 // amount of time. 37 // amount of time.
39 struct UserExperiment { 38 struct UserExperiment {
40 string16 prefix; // The experiment code prefix for this experiment, 39 string16 prefix; // The experiment code prefix for this experiment,
41 // also known as the 'TV' part in 'TV80'. 40 // also known as the 'TV' part in 'TV80'.
42 int flavor; // The flavor index for this experiment. 41 int flavor; // The flavor index for this experiment.
43 int heading; // The heading resource ID to use for this experiment. 42 int heading; // The heading resource ID to use for this experiment.
44 bool compact_bubble; // Whether to show the compact heading or not. 43 bool compact_bubble; // Whether to show the compact heading or not.
45 int control_group; // Size of the control group (in percentages). Control 44 int control_group; // Size of the control group (in percentages). Control
46 // group is the group that qualifies for the 45 // group is the group that qualifies for the
47 // experiment but does not participate. 46 // experiment but does not participate.
48 }; 47 };
49 48
49 // An array of the Types representing products;
50 static const Type kProductTypes[];
51
52 // The number of elements in the array |kProductTypes|.
53 static const size_t kNumProductTypes;
54
50 virtual ~BrowserDistribution() {} 55 virtual ~BrowserDistribution() {}
51 56
52 static BrowserDistribution* GetDistribution(); 57 static BrowserDistribution* GetDistribution();
53 58
54 static BrowserDistribution* GetSpecificDistribution(Type type); 59 static BrowserDistribution* GetSpecificDistribution(Type type);
55 60
56 Type GetType() const { return type_; } 61 Type GetType() const { return type_; }
57 62
58 virtual void DoPostUninstallOperations(const Version& version, 63 virtual void DoPostUninstallOperations(const Version& version,
59 const FilePath& local_data_path, 64 const FilePath& local_data_path,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 168
164 const Type type_; 169 const Type type_;
165 170
166 private: 171 private:
167 BrowserDistribution(); 172 BrowserDistribution();
168 173
169 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); 174 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution);
170 }; 175 };
171 176
172 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ 177 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_
OLDNEW
« no previous file with comments | « chrome/installer/setup/uninstall.cc ('k') | chrome/installer/util/browser_distribution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698