OLD | NEW |
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 #include "chrome/browser/chrome_browser_field_trials.h" | 5 #include "chrome/browser/chrome_browser_field_trials.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" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
14 #include "chrome/common/chrome_version_info.h" | |
15 #include "components/metrics/metrics_pref_names.h" | 14 #include "components/metrics/metrics_pref_names.h" |
16 #include "components/omnibox/browser/omnibox_field_trial.h" | 15 #include "components/omnibox/browser/omnibox_field_trial.h" |
17 | 16 |
18 #if defined(OS_ANDROID) || defined(OS_IOS) | 17 #if defined(OS_ANDROID) || defined(OS_IOS) |
19 #include "chrome/browser/chrome_browser_field_trials_mobile.h" | 18 #include "chrome/browser/chrome_browser_field_trials_mobile.h" |
20 #else | 19 #else |
21 #include "chrome/browser/chrome_browser_field_trials_desktop.h" | 20 #include "chrome/browser/chrome_browser_field_trials_desktop.h" |
22 #endif | 21 #endif |
23 | 22 |
24 ChromeBrowserFieldTrials::ChromeBrowserFieldTrials( | 23 ChromeBrowserFieldTrials::ChromeBrowserFieldTrials( |
(...skipping 15 matching lines...) Expand all Loading... |
40 #endif | 39 #endif |
41 } | 40 } |
42 | 41 |
43 void ChromeBrowserFieldTrials::InstantiateDynamicTrials() { | 42 void ChromeBrowserFieldTrials::InstantiateDynamicTrials() { |
44 // The following trials are used from renderer process. | 43 // The following trials are used from renderer process. |
45 // Mark here so they will be sync-ed. | 44 // Mark here so they will be sync-ed. |
46 base::FieldTrialList::FindValue("DisplayList2dCanvas"); | 45 base::FieldTrialList::FindValue("DisplayList2dCanvas"); |
47 // Activate the autocomplete dynamic field trials. | 46 // Activate the autocomplete dynamic field trials. |
48 OmniboxFieldTrial::ActivateDynamicTrials(); | 47 OmniboxFieldTrial::ActivateDynamicTrials(); |
49 } | 48 } |
OLD | NEW |