OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/ios_chrome_field_trials.h" | 5 #include "ios/chrome/browser/ios_chrome_field_trials.h" |
6 | 6 |
7 #include "base/metrics/field_trial.h" | 7 #include "base/metrics/field_trial.h" |
| 8 #include "components/ntp_tiles/field_trial.h" |
| 9 #include "components/version_info/version_info.h" |
| 10 #include "ios/chrome/common/channel_info.h" |
8 | 11 |
9 void SetupIOSFieldTrials() { | 12 void SetupIOSFieldTrials() { |
10 // Activate the iOS tab eviction dynamic field trials. | 13 // Activate the iOS tab eviction dynamic field trials. |
11 base::FieldTrialList::FindValue("TabEviction"); | 14 base::FieldTrialList::FindValue("TabEviction"); |
| 15 |
| 16 // Setup a field trial for a first run experiment on Popular sites. |
| 17 ntp_tiles::SetUpFirstLaunchFieldTrial(GetChannel() == |
| 18 version_info::Channel::STABLE); |
12 } | 19 } |
OLD | NEW |