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

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

Issue 13255003: Add method to invoke mobile only field trials. Add a field trial that controls rollout of data comp… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Exclude iOS as well. Created 7 years, 8 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 | « no previous file | chrome/browser/chrome_browser_field_trials.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 #ifndef CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_ 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_
6 #define CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_ 6 #define CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 15 matching lines...) Expand all
26 WarmConnectionFieldTrial_WarmestSocket); 26 WarmConnectionFieldTrial_WarmestSocket);
27 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Random); 27 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Random);
28 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Invalid); 28 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Invalid);
29 29
30 // Sets up common desktop-only field trials. 30 // Sets up common desktop-only field trials.
31 // Add an invocation of your field trial init function to this method, or to 31 // Add an invocation of your field trial init function to this method, or to
32 // SetupFieldTrials if it is for all platforms. 32 // SetupFieldTrials if it is for all platforms.
33 // |local_state| is needed by some other methods called from within this one. 33 // |local_state| is needed by some other methods called from within this one.
34 void SetupDesktopFieldTrials(PrefService* local_state); 34 void SetupDesktopFieldTrials(PrefService* local_state);
35 35
36 // Sets up mobile-only field trials.
37 // Add invocation of your field trial initialization code in this method.
38 void SetupMobileFieldTrials();
SteveT 2013/04/01 19:26:51 Do we want to declare/define this at all on deskto
vagababov 2013/04/01 19:34:56 Makes sense. Wrapped declarations and definitions
39
36 // This is not quite a field trial initialization, but it's an initialization 40 // This is not quite a field trial initialization, but it's an initialization
37 // that depends on a field trial, so why not? :-) 41 // that depends on a field trial, so why not? :-)
38 // |local_state| is needed to reset a local pref based on the chosen group. 42 // |local_state| is needed to reset a local pref based on the chosen group.
39 void SetupAppLauncherFieldTrial(PrefService* local_state); 43 void SetupAppLauncherFieldTrial(PrefService* local_state);
40 44
41 // A/B test for spdy when --use-spdy not set. 45 // A/B test for spdy when --use-spdy not set.
42 void SpdyFieldTrial(); 46 void SpdyFieldTrial();
43 47
48 // Mobile compression rollout field trial.
49 void DataCompressionProxyFieldTrial();
50
44 // A/B test for warmest socket vs. most recently used socket. 51 // A/B test for warmest socket vs. most recently used socket.
45 void WarmConnectionFieldTrial(); 52 void WarmConnectionFieldTrial();
46 53
47 // Field trial to see what disabling DNS pre-resolution does to 54 // Field trial to see what disabling DNS pre-resolution does to
48 // latency of page loads. 55 // latency of page loads.
49 void PredictorFieldTrial(); 56 void PredictorFieldTrial();
50 57
51 // A field trial to see what effects launching Chrome automatically on 58 // A field trial to see what effects launching Chrome automatically on
52 // computer startup has on retention and usage of Chrome. 59 // computer startup has on retention and usage of Chrome.
53 void AutoLaunchChromeFieldTrial(); 60 void AutoLaunchChromeFieldTrial();
(...skipping 23 matching lines...) Expand all
77 // Instantiates dynamic trials by querying their state, to ensure they get 84 // Instantiates dynamic trials by querying their state, to ensure they get
78 // reported as used. 85 // reported as used.
79 void InstantiateDynamicTrials(); 86 void InstantiateDynamicTrials();
80 87
81 const CommandLine& parsed_command_line_; 88 const CommandLine& parsed_command_line_;
82 89
83 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserFieldTrials); 90 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserFieldTrials);
84 }; 91 };
85 92
86 #endif // CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_ 93 #endif // CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_field_trials.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698