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

Side by Side Diff: chrome/browser/auto_launch_trial.h

Issue 1432033003: Delete the auto-launch trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile Created 5 years, 1 month 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTO_LAUNCH_TRIAL_H_
6 #define CHROME_BROWSER_AUTO_LAUNCH_TRIAL_H_
7
8 #include <string>
9
10 // Strings used with the "auto launching Chrome at computer startup" trial. If
11 // the field trial is running then...
12 // base::FieldTrialList::TrialExists(kAutoLaunchTrial_Name) returns true.
13 //
14 // The field trial consists of two groups of users: those that auto-launch
15 // Chrome at startup and those that don't. The group_name() of the field
16 // trial object is used to determine the group that the user belongs to.
17 //
18 // The field trial is setup in ChromeBrowserMainParts::AutoLaunchFieldTrial()
19 // based on the user's brand code:
20 //
21 // - brand RNGP auto launches Chrome on computer startup.
22 // - brand RNGQ does not.
Finnur 2015/11/11 09:55:53 I don't know if we still send out these builds, bu
gab 2015/11/11 21:30:02 I sent a notification to chrome-ui-review and to a
23 // - any other brand code does whatever comes natural to it.
24
25 extern const char kAutoLaunchTrialName[];
26 extern const char kAutoLaunchTrialAutoLaunchGroup[];
27 extern const char kAutoLaunchTrialControlGroup[];
28
29 namespace auto_launch_trial {
30
31 // The possible responses for the auto-launch infobar.
32 enum InfobarMetricResponse {
33 INFOBAR_CUT_IT_OUT = 0,
34 INFOBAR_OK,
35 INFOBAR_IGNORE,
36 };
37
38 // Whether the auto-launch experiment is active and the user is part of it.
39 bool IsInAutoLaunchGroup();
40
41 // Whether the brand is part of the experiment group for auto-launch.
42 bool IsInExperimentGroup(const std::string& brand_code);
43
44 // Whether the brand is part of the control group for auto-launch.
45 bool IsInControlGroup(const std::string& brand_code);
46
47 } // namespace auto_launch_trial
48
49 #endif // CHROME_BROWSER_AUTO_LAUNCH_TRIAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698