| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // Linux only supports client functionality at the moment. | 90 // Linux only supports client functionality at the moment. |
| 91 IDS_LABS_REMOTING_CLIENT_DESCRIPTION, | 91 IDS_LABS_REMOTING_CLIENT_DESCRIPTION, |
| 92 #else | 92 #else |
| 93 // On other platforms, this lab isn't available at all. | 93 // On other platforms, this lab isn't available at all. |
| 94 0, | 94 0, |
| 95 #endif | 95 #endif |
| 96 kOsWin | kOsLinux, | 96 kOsWin | kOsLinux, |
| 97 switches::kEnableRemoting | 97 switches::kEnableRemoting |
| 98 }, | 98 }, |
| 99 { | 99 { |
| 100 "page-info-bubble", // Do not change; see above. | |
| 101 IDS_LABS_PAGE_INFO_BUBBLE_NAME, | |
| 102 IDS_LABS_PAGE_INFO_BUBBLE_DESCRIPTION, | |
| 103 kOsAll, | |
| 104 switches::kEnableNewPageInfoBubble | |
| 105 }, | |
| 106 { | |
| 107 "disable-outdated-plugins", // Do not change; see above. | 100 "disable-outdated-plugins", // Do not change; see above. |
| 108 IDS_LABS_DISABLE_OUTDATED_PLUGINS_NAME, | 101 IDS_LABS_DISABLE_OUTDATED_PLUGINS_NAME, |
| 109 IDS_LABS_DISABLE_OUTDATED_PLUGINS_DESCRIPTION, | 102 IDS_LABS_DISABLE_OUTDATED_PLUGINS_DESCRIPTION, |
| 110 kOsAll, | 103 kOsAll, |
| 111 switches::kDisableOutdatedPlugins | 104 switches::kDisableOutdatedPlugins |
| 112 }, | 105 }, |
| 113 { | 106 { |
| 114 "xss-auditor", // Do not change; see above. | 107 "xss-auditor", // Do not change; see above. |
| 115 IDS_LABS_XSS_AUDITOR_NAME, | 108 IDS_LABS_XSS_AUDITOR_NAME, |
| 116 IDS_LABS_XSS_AUDITOR_DESCRIPTION, | 109 IDS_LABS_XSS_AUDITOR_DESCRIPTION, |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 278 |
| 286 if (enable) | 279 if (enable) |
| 287 enabled_experiments.insert(internal_name); | 280 enabled_experiments.insert(internal_name); |
| 288 else | 281 else |
| 289 enabled_experiments.erase(internal_name); | 282 enabled_experiments.erase(internal_name); |
| 290 | 283 |
| 291 SetEnabledLabs(profile->GetPrefs(), enabled_experiments); | 284 SetEnabledLabs(profile->GetPrefs(), enabled_experiments); |
| 292 } | 285 } |
| 293 | 286 |
| 294 } // namespace Labs | 287 } // namespace Labs |
| OLD | NEW |