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

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: Wrap everything in guades. 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 #if defined(OS_ANDROID) || defined(OS_IOS)
37 // Sets up mobile-only field trials.
38 // Add invocation of your field trial initialization code in this method.
39 void SetupMobileFieldTrials();
40
41 // Mobile compression rollout field trial.
42 void DataCompressionProxyFieldTrial();
43 #endif // defined(OS_ANDROID) || defined(OS_IOS)
44
36 // This is not quite a field trial initialization, but it's an initialization 45 // This is not quite a field trial initialization, but it's an initialization
37 // that depends on a field trial, so why not? :-) 46 // that depends on a field trial, so why not? :-)
38 // |local_state| is needed to reset a local pref based on the chosen group. 47 // |local_state| is needed to reset a local pref based on the chosen group.
39 void SetupAppLauncherFieldTrial(PrefService* local_state); 48 void SetupAppLauncherFieldTrial(PrefService* local_state);
40 49
41 // A/B test for spdy when --use-spdy not set. 50 // A/B test for spdy when --use-spdy not set.
42 void SpdyFieldTrial(); 51 void SpdyFieldTrial();
43 52
44 // A/B test for warmest socket vs. most recently used socket. 53 // A/B test for warmest socket vs. most recently used socket.
45 void WarmConnectionFieldTrial(); 54 void WarmConnectionFieldTrial();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Instantiates dynamic trials by querying their state, to ensure they get 86 // Instantiates dynamic trials by querying their state, to ensure they get
78 // reported as used. 87 // reported as used.
79 void InstantiateDynamicTrials(); 88 void InstantiateDynamicTrials();
80 89
81 const CommandLine& parsed_command_line_; 90 const CommandLine& parsed_command_line_;
82 91
83 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserFieldTrials); 92 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserFieldTrials);
84 }; 93 };
85 94
86 #endif // CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_ 95 #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