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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // independently from the rollout of compression proxy. The enabled | 57 // independently from the rollout of compression proxy. The enabled |
58 // percentage is configured to be 10% = 100 / 1000 until overridden by the | 58 // percentage is configured to be 10% = 100 / 1000 until overridden by the |
59 // server. When this trial is "Enabled," users get a promo, whereas | 59 // server. When this trial is "Enabled," users get a promo, whereas |
60 // otherwise, compression is available without a promo. | 60 // otherwise, compression is available without a promo. |
61 DataCompressionProxyBaseFieldTrial( | 61 DataCompressionProxyBaseFieldTrial( |
62 "DataCompressionProxyPromoVisibility", 100, 1000); | 62 "DataCompressionProxyPromoVisibility", 100, 1000); |
63 } | 63 } |
64 | 64 |
65 } // namespace | 65 } // namespace |
66 | 66 |
67 void SetupMobileFieldTrials(const CommandLine& parsed_command_line) { | 67 void SetupMobileFieldTrials(const base::CommandLine& parsed_command_line) { |
68 SetupDataCompressionProxyFieldTrials(); | 68 SetupDataCompressionProxyFieldTrials(); |
69 #if defined(OS_ANDROID) | 69 #if defined(OS_ANDROID) |
70 prerender::ConfigurePrerender(parsed_command_line); | 70 prerender::ConfigurePrerender(parsed_command_line); |
71 | 71 |
72 // Force-enable profiler timing depending on the field trial. | 72 // Force-enable profiler timing depending on the field trial. |
73 if (base::FieldTrialList::FindFullName("ProfilerTiming") == "Enable") | 73 if (base::FieldTrialList::FindFullName("ProfilerTiming") == "Enable") |
74 tracked_objects::ThreadData::EnableProfilerTiming(); | 74 tracked_objects::ThreadData::EnableProfilerTiming(); |
75 #endif | 75 #endif |
76 } | 76 } |
77 | 77 |
78 } // namespace chrome | 78 } // namespace chrome |
OLD | NEW |