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

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

Issue 94013004: Add base:: to string16s in chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try again Created 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 files declares a class that contains methods and data to conduct 5 // This files declares a class that contains methods and data to conduct
6 // for user expeirments. 6 // for user expeirments.
7 7
8 #ifndef CHROME_INSTALLER_UTIL_USER_EXPERIMENT_H_ 8 #ifndef CHROME_INSTALLER_UTIL_USER_EXPERIMENT_H_
9 #define CHROME_INSTALLER_UTIL_USER_EXPERIMENT_H_ 9 #define CHROME_INSTALLER_UTIL_USER_EXPERIMENT_H_
10 10
(...skipping 15 matching lines...) Expand all
26 kToastUiUninstall = 1 << 0, // Uninstall radio button. 26 kToastUiUninstall = 1 << 0, // Uninstall radio button.
27 kToastUiDontBugMeAsButton = 1 << 1, // This is a button, not a radio button. 27 kToastUiDontBugMeAsButton = 1 << 1, // This is a button, not a radio button.
28 kToastUiWhyLink = 1 << 2, // Has the 'why I am seeing this' link. 28 kToastUiWhyLink = 1 << 2, // Has the 'why I am seeing this' link.
29 kToastUiMakeDefault = 1 << 3, // Has the 'make it default' checkbox. 29 kToastUiMakeDefault = 1 << 3, // Has the 'make it default' checkbox.
30 }; 30 };
31 31
32 // A struct for communicating what a UserExperiment contains. In these 32 // A struct for communicating what a UserExperiment contains. In these
33 // experiments we show toasts to the user if they are inactive for a certain 33 // experiments we show toasts to the user if they are inactive for a certain
34 // amount of time. 34 // amount of time.
35 struct ExperimentDetails { 35 struct ExperimentDetails {
36 string16 prefix; // The experiment code prefix for this experiment, 36 base::string16 prefix; // The experiment code prefix for this experiment,
37 // also known as the 'TV' part in 'TV80'. 37 // also known as the 'TV' part in 'TV80'.
38 int flavor; // The flavor index for this experiment. 38 int flavor; // The flavor index for this experiment.
39 int heading; // The heading resource ID to use for this experiment. 39 int heading; // The heading resource ID to use for this experiment.
40 int flags; // See ToastUIFlags above. 40 int flags; // See ToastUIFlags above.
41 int control_group; // Size of the control group (in percentages). Control 41 int control_group; // Size of the control group (in percentages). Control
42 // group is the group that qualifies for the 42 // group is the group that qualifies for the
43 // experiment but does not participate. 43 // experiment but does not participate.
44 }; 44 };
45 45
46 // Creates the experiment details for a given language-brand combo. 46 // Creates the experiment details for a given language-brand combo.
47 // If |flavor| is -1, then a flavor will be selected at random. |experiment| 47 // If |flavor| is -1, then a flavor will be selected at random. |experiment|
48 // is the struct you want to write the experiment information to. 48 // is the struct you want to write the experiment information to.
49 // Returns false if no experiment details could be gathered. 49 // Returns false if no experiment details could be gathered.
50 bool CreateExperimentDetails(int flavor, ExperimentDetails* experiment); 50 bool CreateExperimentDetails(int flavor, ExperimentDetails* experiment);
51 51
52 // After an install or upgrade the user might qualify to participate in an 52 // After an install or upgrade the user might qualify to participate in an
53 // experiment. This function determines if the user qualifies and if so it 53 // experiment. This function determines if the user qualifies and if so it
54 // sets the wheels in motion or in simple cases does the experiment itself. 54 // sets the wheels in motion or in simple cases does the experiment itself.
55 void LaunchBrowserUserExperiment(const CommandLine& base_command, 55 void LaunchBrowserUserExperiment(const CommandLine& base_command,
56 InstallStatus status, 56 InstallStatus status,
57 bool system_level); 57 bool system_level);
58 58
59 // The user has qualified for the inactive user toast experiment and this 59 // The user has qualified for the inactive user toast experiment and this
60 // function just performs it. 60 // function just performs it.
61 void InactiveUserToastExperiment(int flavor, 61 void InactiveUserToastExperiment(int flavor,
62 const string16& experiment_group, 62 const base::string16& experiment_group,
63 const Product& product, 63 const Product& product,
64 const base::FilePath& application_path); 64 const base::FilePath& application_path);
65 65
66 } // namespace installer 66 } // namespace installer
67 67
68 #endif // CHROME_INSTALLER_UTIL_USER_EXPERIMENT_H_ 68 #endif // CHROME_INSTALLER_UTIL_USER_EXPERIMENT_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/uninstall_metrics_unittest.cc ('k') | chrome/installer/util/user_experiment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698