/external/chromium_org/chrome/browser/prefetch/ |
H A D | prefetch_field_trial.cc | 16 std::string experiment = base::FieldTrialList::FindFullName("Prefetch"); local 17 return StartsWithASCII(experiment, "ExperimentDisable", false);
|
/external/chromium_org/chrome/browser/metrics/variations/ |
H A D | variations_seed_store_unittest.cc | 43 // study called "test", which contains one experiment called "abc" with 51 variations::Study_Experiment* experiment = study->add_experiment(); local 52 experiment->set_name("abc"); 53 experiment->set_probability_weight(100);
|
H A D | variations_service_unittest.cc | 124 // study called "test", which contains one experiment called "abc" with 132 variations::Study_Experiment* experiment = study->add_experiment(); local 133 experiment->set_name("abc"); 134 experiment->set_probability_weight(100);
|
/external/chromium_org/components/variations/ |
H A D | variations_seed_processor.cc | 21 // Associates the variations params of |experiment|, if present. 23 const Study_Experiment& experiment) { 25 for (int i = 0; i < experiment.param_size(); ++i) { 26 if (experiment.param(i).has_name() && experiment.param(i).has_value()) 27 params[experiment.param(i).name()] = experiment.param(i).value(); 30 AssociateVariationParams(study.name(), experiment.name(), params); 33 // If there are variation ids associated with |experiment|, register the 35 void RegisterVariationIds(const Study_Experiment& experiment, argument 22 RegisterExperimentParams(const Study& study, const Study_Experiment& experiment) argument 64 ApplyUIStringOverrides( const Study_Experiment& experiment, const VariationsSeedProcessor::UIStringOverrideCallback& callback) argument 108 const Study_Experiment& experiment = study.experiment(i); local 157 const Study_Experiment& experiment = study.experiment(i); local [all...] |
H A D | variations_seed_simulator.cc | 29 // Returns the experiment group that will be selected. Mirrors logic in 46 const Study_Experiment& experiment = study.experiment(i); local 50 if (!experiment.has_forcing_flag() && 51 experiment.name() != study.default_experiment_name()) { 52 trial->AppendGroup(experiment.name(), experiment.probability_weight()); 60 // Finds an experiment in |study| with name |experiment_name| and returns it, 65 if (study.experiment(i).name() == experiment_name) 66 return &study.experiment( 74 VariationParamsAreEqual(const Study& study, const Study_Experiment& experiment) argument 208 const Study_Experiment* experiment = FindExperiment(study, selected_group); local 229 const Study_Experiment* experiment = FindExperiment(study, selected_group); local [all...] |
H A D | variations_seed_simulator_unittest.cc | 59 // Adds an experiment to |study| with the specified |experiment_name| and 60 // |probability| values and sets it as the study's default experiment. 64 Study_Experiment* experiment = study->add_experiment(); local 65 experiment->set_name(experiment_name); 66 experiment->set_probability_weight(probability); 68 return experiment; 71 // Add an experiment param with |param_name| and |param_value| to |experiment|. 74 Study_Experiment* experiment) { 75 Study_Experiment_Param* param = experiment 72 AddExperimentParam(const std::string& param_name, const std::string& param_value, Study_Experiment* experiment) argument 150 Study_Experiment* experiment = AddExperiment("B", 100, &study); local 168 Study_Experiment* experiment = AddExperiment("C", 100, &study); local 188 Study_Experiment* experiment = AddExperiment("B", 1, &study); local 209 Study_Experiment* experiment = AddExperiment("B", 1, &study); local 242 Study_Experiment* experiment = AddExperiment("B", 0, &study); local 263 Study_Experiment* experiment = AddExperiment("B", 1, &study); local 290 Study_Experiment* experiment = AddExperiment("B", 100, &study); local 316 Study_Experiment* experiment = AddExperiment("B", 100, &study); local 343 Study_Experiment* experiment = AddExperiment("B", 100, &study); local 363 Study_Experiment* experiment = AddExperiment("B", 100, &study); local [all...] |
H A D | study_filtering_unittest.cc | 22 // Adds an experiment to |study| with the specified |name| and |probability|. 25 Study_Experiment* experiment = study->add_experiment(); local 26 experiment->set_name(name); 27 experiment->set_probability_weight(probability); 28 return experiment; 406 EXPECT_EQ(kGroup1Name, processed_studies[0].study()->experiment(0).name());
|
H A D | variations_seed_processor_unittest.cc | 37 // Adds an experiment to |study| with the specified |name| and |probability|. 40 Study_Experiment* experiment = study->add_experiment(); local 41 experiment->set_name(name); 42 experiment->set_probability_weight(probability); 43 return experiment; 298 ASSERT_EQ(kForcingFlag1, study.experiment(1).forcing_flag()); 389 ASSERT_EQ(kForcingFlag1, study.experiment(1).forcing_flag()); 468 ASSERT_EQ(kNonFlagGroupName, study.experiment(0).name()); 479 // The previously forced experiment should still hold. 483 // Check that params and experiment id [all...] |
/external/chromium_org/chrome/browser/first_run/ |
H A D | try_chrome_dialog_view.cc | 167 // Find out what experiment we are conducting. 168 installer::ExperimentDetails experiment; local 170 !installer::CreateExperimentDetails(flavor_, &experiment) || 171 !experiment.heading) { 176 l10n_util::GetStringUTF16(experiment.heading), 204 !!(experiment.flags & installer::kToastUiDontBugMeAsButton); 215 if (experiment.flags & installer::kToastUiUninstall) { 228 if (experiment.flags & installer::kToastUiMakeDefault) { 259 if (experiment.flags & installer::kToastUiWhyLink) {
|
/external/chromium_org/chrome/browser/prerender/ |
H A D | prerender_histograms.cc | 84 // Helper macros for experiment-based and origin-based histogram reporting. 94 experiment, HISTOGRAM) \ 95 PREFIXED_HISTOGRAM_INTERNAL(origin, experiment, false, HISTOGRAM, \ 98 #define PREFIXED_HISTOGRAM_INTERNAL(origin, experiment, wash, HISTOGRAM, \ 106 std::string name = GetHistogramName(origin, experiment, wash, \ 108 /* Usually, a browsing session should only have a single experiment. */ \ 109 /* Therefore, when there is a second experiment ID other than the one */ \ 112 /* somehow be an experiment ID if the origin is not GWS, ignore the */ \ 113 /* experiment ID. */ \ 115 if (recording_experiment == kNoExperiment && experiment ! 155 uint8 experiment = GetQueryStringBasedExperiment(url); local [all...] |
H A D | prerender_manager.cc | 107 // control group & the experiment group, so that we can make meaningful 1262 uint8 experiment = GetQueryStringBasedExperiment(url_arg); local 1263 if (IsControlGroup(experiment) && 1275 url, origin, experiment, FINAL_STATUS_DUPLICATE); 1294 url, origin, experiment, FINAL_STATUS_TOO_MANY_PROCESSES); 1304 url, origin, experiment, FINAL_STATUS_RATE_LIMIT_EXCEEDED); 1312 url, origin, experiment, FINAL_STATUS_COOKIE_STORE_NOT_LOADED); 1317 url, referrer, origin, experiment); 1347 DCHECK(IsControlGroup(experiment) || 1366 experiment), [all...] |
/external/chromium_org/net/disk_cache/blockfile/ |
H A D | disk_format.h | 83 int32 experiment; // Id of an ongoing test. member in struct:disk_cache::IndexHeader
|
H A D | disk_format_v3.h | 75 int32 experiment; // Id of an ongoing test. member in struct:disk_cache::IndexHeaderV3
|
/external/chromium_org/chrome/browser/ |
H A D | about_flags_unittest.cc | 192 const about_flags::Experiment& experiment = experiments[i]; local 193 if (experiment.type == about_flags::Experiment::SINGLE_VALUE) { 194 result.insert(experiment.command_line_switch); 195 } else if (experiment.type == about_flags::Experiment::MULTI_VALUE) { 196 for (int j = 0; j < experiment.num_choices; ++j) { 197 result.insert(experiment.choices[j].command_line_switch); 200 DCHECK_EQ(experiment.type, about_flags::Experiment::ENABLE_DISABLE_VALUE); 201 result.insert(experiment.command_line_switch); 202 result.insert(experiment.disable_command_line_switch); 218 // The experiments that are set for these tests. The 3rd experiment i 329 const Experiment& experiment = kExperiments[3]; local 589 const Experiment& experiment = kExperiments[3]; local 623 const Experiment& experiment = kExperiments[4]; local [all...] |
H A D | about_flags.cc | 96 // whether the experiment is available on that platform. 482 // The first line of the experiment is the internal name. If you'd like to 505 // To add a new experiment add to the end of kExperiments. There are two 507 // . SINGLE_VALUE: experiment is either on or off. Use the SINGLE_VALUE_TYPE 511 // this type of experiment use the macro MULTI_VALUE_TYPE supplying it the 1590 "enhanced-bookmarks-experiment", 1614 "enable-zero-suggest-experiment", 1976 // Adds the internal names for the specified experiment to |names|. 1988 // Confirms that an experiment is valid, used in a DCHECK in 2042 bool SkipConditionalExperiment(const Experiment& experiment, argument 2106 CreateChoiceData( const Experiment& experiment, const std::set<std::string>& enabled_experiments) argument 2197 const Experiment& experiment = experiments[i]; local [all...] |
/external/chromium_org/chrome/browser/net/ |
H A D | connection_tester.cc | 49 // An instance of ExperimentURLRequestContext is created for each experiment 51 // to the specified "experiment". 66 // Creates a proxy config service for |experiment|. On success returns net::OK 70 ConnectionTester::ProxySettingsExperiment experiment, 73 switch (experiment) { 92 int Init(const ConnectionTester::Experiment& experiment, argument 97 // Create a custom HostResolver for this experiment. 99 rv = CreateHostResolver(experiment.host_resolver_experiment, 105 // Create a custom ProxyService for this this experiment. 107 rv = CreateProxyService(experiment 69 CreateProxyConfigService( ConnectionTester::ProxySettingsExperiment experiment, scoped_ptr<net::ProxyConfigService>* config_service, base::Callback<void(int)> callback) argument 151 CreateHostResolver( ConnectionTester::HostResolverExperiment experiment, scoped_ptr<net::HostResolver>* host_resolver) argument 186 CreateProxyService( ConnectionTester::ProxySettingsExperiment experiment, scoped_ptr<net::ProxyConfigService>* proxy_config_service, scoped_ptr<net::ProxyService>* experiment_proxy_service) argument 403 ProxyConfigServiceCreated( const Experiment& experiment, scoped_ptr<net::ProxyConfigService>* proxy_config_service, int status) argument 421 Run(const Experiment& experiment) argument 465 ProxySettingsExperimentDescription( ProxySettingsExperiment experiment) argument 484 HostResolverExperimentDescription( HostResolverExperiment experiment) argument [all...] |
/external/chromium_org/chrome/installer/util/ |
H A D | user_experiment.cc | 41 // The following strings are the possible outcomes of the toast experiment 111 // If handle to experiment result key was given at startup, re-add it. 271 // Use it to write the experiment results. 284 bool CreateExperimentDetails(int flavor, ExperimentDetails* experiment) { argument 289 // Maximum number of experiment flavors we support. 291 // This struct determines which experiment flavors we show for each locale and 294 // Plugin infobar experiment: 295 // The experiment in 2011 used PIxx codes. 297 // Inactive user toast experiment: 298 // The experiment i 412 ExperimentDetails experiment; local [all...] |
/external/chromium_org/net/http/ |
H A D | http_server_properties_impl.cc | 363 AlternateProtocolExperiment experiment) { 364 alternate_protocol_experiment_ = experiment; 362 SetAlternateProtocolExperiment( AlternateProtocolExperiment experiment) argument
|
H A D | http_server_properties_manager.cc | 211 AlternateProtocolExperiment experiment) { 213 http_server_properties_impl_->SetAlternateProtocolExperiment(experiment); 360 // TODO(rtenneti): Delete the following code after the experiment. 210 SetAlternateProtocolExperiment( AlternateProtocolExperiment experiment) argument
|
/external/chromium_org/chrome/browser/extensions/ |
H A D | extension_install_prompt.h | 186 const ExtensionInstallPromptExperiment* experiment() const { function in class:ExtensionInstallPrompt::Prompt 189 void set_experiment(ExtensionInstallPromptExperiment* experiment) { argument 190 experiment_ = experiment;
|
/external/chromium_org/chrome/browser/ui/webui/net_internals/ |
H A D | net_internals_ui.cc | 187 base::Value* ExperimentToValue(const ConnectionTester::Experiment& experiment) { argument 190 if (experiment.url.is_valid()) 191 dict->SetString("url", experiment.url.spec()); 195 experiment.proxy_settings_experiment)); 198 experiment.host_resolver_experiment)); 419 const ConnectionTester::Experiment& experiment) OVERRIDE; 421 const ConnectionTester::Experiment& experiment, 1567 const ConnectionTester::Experiment& experiment) { 1570 ExperimentToValue(experiment)); 1575 const ConnectionTester::Experiment& experiment, 1566 OnStartConnectionTestExperiment( const ConnectionTester::Experiment& experiment) argument 1574 OnCompletedConnectionTestExperiment( const ConnectionTester::Experiment& experiment, int result) argument [all...] |