| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/chrome_browser_field_trials_mobile.h" | 5 #include "chrome/browser/chrome_browser_field_trials_mobile.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // independently from the rollout of compression proxy. The enabled | 65 // independently from the rollout of compression proxy. The enabled |
| 66 // percentage is configured to be 10% = 100 / 1000 until overridden by the | 66 // percentage is configured to be 10% = 100 / 1000 until overridden by the |
| 67 // server. When this trial is "Enabled," users get a promo, whereas | 67 // server. When this trial is "Enabled," users get a promo, whereas |
| 68 // otherwise, compression is available without a promo. | 68 // otherwise, compression is available without a promo. |
| 69 DataCompressionProxyBaseFieldTrial( | 69 DataCompressionProxyBaseFieldTrial( |
| 70 "DataCompressionProxyPromoVisibility", 100, 1000); | 70 "DataCompressionProxyPromoVisibility", 100, 1000); |
| 71 } | 71 } |
| 72 | 72 |
| 73 } // namespace | 73 } // namespace |
| 74 | 74 |
| 75 void SetupMobileFieldTrials(const CommandLine& parsed_command_line, | 75 void SetupMobileFieldTrials(const CommandLine& parsed_command_line) { |
| 76 const base::Time& install_time, | |
| 77 PrefService* local_state) { | |
| 78 DataCompressionProxyFieldTrials(); | 76 DataCompressionProxyFieldTrials(); |
| 79 #if defined(OS_ANDROID) | 77 #if defined(OS_ANDROID) |
| 80 prerender::ConfigurePrerender(parsed_command_line); | 78 prerender::ConfigurePrerender(parsed_command_line); |
| 81 #endif | 79 #endif |
| 82 } | 80 } |
| 83 | 81 |
| 84 } // namespace chrome | 82 } // namespace chrome |
| OLD | NEW |