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

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

Issue 8729009: Implement an AutoLaunch experiment for Chrome for certain brand codes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
Property Changes:
Added: svn:eol-style
+ LF
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 #pragma once
8
9 // Strings used with the "auto launching Chrome at computer startup" trial. If
10 // the field trial is running then...
11 // base::FieldTrialList::TrialExists(kAutoLaunchTrial_Name) returns true.
12 //
13 // The field trial consists of two groups of users: those that auto-launch
14 // Chrome at startup and those that don't. The group_name() of the field
15 // trial object is used to determine the group that the user belongs to.
16 //
17 // The field trial is setup in ChromeBrowserMainParts::AutoLaunchFieldTrial()
18 // based on the user's brand code:
19 //
20 // - brand RNGP auto launches Chrome on computer startup.
21 // - brand RNGQ does not.
22 // - any other brand code does whatever comes natural to it.
23
24 extern const char kAutoLaunchTrial_Name[];
25 extern const char kAutoLaunchTrial_AutoLaunchGroup[];
26 extern const char kAutoLaunchTrial_ControlGroup[];
Roger Tawa OOO till Jul 10th 2011/12/07 15:38:37 I had originally used _ in the name for the defaul
Finnur 2011/12/13 15:53:24 Done.
27
28 namespace auto_launch_trial {
29
30 // Whether the auto-launch experiment is active and the user is part of it.
31 bool IsInAutoLaunchGroup();
32
33 // Updates UMA to reflect user changing the auto-launch setting.
34 void UpdateToggleAutoLaunchMetric(bool auto_launch);
35
36 // Updates UMA to reflect user responses to the infobar.
37 // 0 = Cut it out!, 1 = OK, 2 = Ignore.
38 void UpdateInfobarResponseMetric(int response);
39
40 // Updates UMA to reflect that the infobar has been shown.
41 void UpdateInfobarShownMetric();
42
43 } // namespace auto_launch_trial
44
45 #endif // CHROME_BROWSER_AUTO_LAUNCH_TRIAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698