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/component_updater/pepper_flash_field_trial.h" | 5 #include "chrome/browser/component_updater/pepper_flash_field_trial.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 static bool activated = false; | 52 static bool activated = false; |
53 if (!activated) { | 53 if (!activated) { |
54 ActivateFieldTrial(); | 54 ActivateFieldTrial(); |
55 activated = true; | 55 activated = true; |
56 } | 56 } |
57 | 57 |
58 int group = base::FieldTrialList::FindValue(kFieldTrialName); | 58 int group = base::FieldTrialList::FindValue(kFieldTrialName); |
59 return group != base::FieldTrial::kNotFinalized && | 59 return group != base::FieldTrial::kNotFinalized && |
60 group != g_disabled_group_number; | 60 group != g_disabled_group_number; |
61 } | 61 } |
OLD | NEW |