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

Unified Diff: chrome/installer/util/browser_distribution.h

Issue 10821007: The new toast experiments. (Closed) Base URL: svn://chrome-svn/chrome/trunk/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 side-by-side diff with in-line comments
Download patch
Index: chrome/installer/util/browser_distribution.h
===================================================================
--- chrome/installer/util/browser_distribution.h (revision 147935)
+++ chrome/installer/util/browser_distribution.h (working copy)
@@ -33,6 +33,14 @@
NUM_TYPES
};
+ // Flags to control what to show in the UserExperiment dialog.
+ enum ToastUIflags {
+ kUninstall = 1, // Uninstall radio button.
+ kDontBugMeAsButton = 2, // Don't bug me is a button, not a radio button.
+ kWhyLink = 4, // Has the 'why I am seeing this' link.
+ kMakeDefault = 8 // Has the 'make it default' checkbox.
+ };
+
// A struct for communicating what a UserExperiment contains. In these
// experiments we show toasts to the user if they are inactive for a certain
// amount of time.
@@ -41,7 +49,8 @@
// also known as the 'TV' part in 'TV80'.
int flavor; // The flavor index for this experiment.
int heading; // The heading resource ID to use for this experiment.
- bool compact_bubble; // Whether to show the compact heading or not.
+ int flags; // See ToastUIFlags above.
+ bool make_default; // Whether to show a checkbox to make chrome default.
Finnur 2012/07/26 12:27:07 If you have the flags, why do you need the bool?
cpu_(ooo_6.6-7.5) 2012/07/27 03:06:23 Good catch. done.
int control_group; // Size of the control group (in percentages). Control
// group is the group that qualifies for the
// experiment but does not participate.

Powered by Google App Engine
This is Rietveld 408576698