OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/labs.h" | 5 #include "chrome/browser/labs.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // On other platforms, this lab isn't available at all. | 94 // On other platforms, this lab isn't available at all. |
95 0, | 95 0, |
96 #endif | 96 #endif |
97 kOsWin | kOsLinux, | 97 kOsWin | kOsLinux, |
98 switches::kEnableRemoting | 98 switches::kEnableRemoting |
99 }, | 99 }, |
100 { | 100 { |
101 "page-info-bubble", // Do not change; see above. | 101 "page-info-bubble", // Do not change; see above. |
102 IDS_LABS_PAGE_INFO_BUBBLE_NAME, | 102 IDS_LABS_PAGE_INFO_BUBBLE_NAME, |
103 IDS_LABS_PAGE_INFO_BUBBLE_DESCRIPTION, | 103 IDS_LABS_PAGE_INFO_BUBBLE_DESCRIPTION, |
104 kOsWin | kOsLinux, | 104 kOsAll, |
105 switches::kEnableNewPageInfoBubble | 105 switches::kEnableNewPageInfoBubble |
106 }, | 106 }, |
107 { | 107 { |
108 "disable-outdated-plugins", // Do not change; see above. | 108 "disable-outdated-plugins", // Do not change; see above. |
109 IDS_LABS_DISABLE_OUTDATED_PLUGINS_NAME, | 109 IDS_LABS_DISABLE_OUTDATED_PLUGINS_NAME, |
110 IDS_LABS_DISABLE_OUTDATED_PLUGINS_DESCRIPTION, | 110 IDS_LABS_DISABLE_OUTDATED_PLUGINS_DESCRIPTION, |
111 kOsAll, | 111 kOsAll, |
112 switches::kDisableOutdatedPlugins | 112 switches::kDisableOutdatedPlugins |
113 }, | 113 }, |
114 }; | 114 }; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 | 268 |
269 if (enable) | 269 if (enable) |
270 enabled_experiments.insert(internal_name); | 270 enabled_experiments.insert(internal_name); |
271 else | 271 else |
272 enabled_experiments.erase(internal_name); | 272 enabled_experiments.erase(internal_name); |
273 | 273 |
274 SetEnabledLabs(profile->GetPrefs(), enabled_experiments); | 274 SetEnabledLabs(profile->GetPrefs(), enabled_experiments); |
275 } | 275 } |
276 | 276 |
277 } // namespace Labs | 277 } // namespace Labs |
OLD | NEW |