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/about_flags.h" | 5 #include "chrome/browser/about_flags.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 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1455 kOsLinux | kOsCrOS | kOsAndroid, | 1455 kOsLinux | kOsCrOS | kOsAndroid, |
1456 SINGLE_VALUE_TYPE(switches::kEnableTcpFastOpen) | 1456 SINGLE_VALUE_TYPE(switches::kEnableTcpFastOpen) |
1457 }, | 1457 }, |
1458 { | 1458 { |
1459 "enable-webp-in-accept-header", | 1459 "enable-webp-in-accept-header", |
1460 IDS_FLAGS_ENABLE_WEBP_IN_ACCEPT_HEADER_NAME, | 1460 IDS_FLAGS_ENABLE_WEBP_IN_ACCEPT_HEADER_NAME, |
1461 IDS_FLAGS_ENABLE_WEBP_IN_ACCEPT_HEADER_DESCRIPTION, | 1461 IDS_FLAGS_ENABLE_WEBP_IN_ACCEPT_HEADER_DESCRIPTION, |
1462 kOsAll, | 1462 kOsAll, |
1463 SINGLE_VALUE_TYPE(switches::kEnableWebPInAcceptHeader) | 1463 SINGLE_VALUE_TYPE(switches::kEnableWebPInAcceptHeader) |
1464 }, | 1464 }, |
| 1465 { |
| 1466 "enable-reset-profile-settings", |
| 1467 IDS_FLAGS_ENABLE_RESET_PROFILE_SETTINGS_NAME, |
| 1468 IDS_FLAGS_ENABLE_RESET_PROFILE_SETTINGS_DESCRIPTION, |
| 1469 kOsAll, |
| 1470 SINGLE_VALUE_TYPE(switches::kEnableResetProfileSettings) |
| 1471 }, |
1465 }; | 1472 }; |
1466 | 1473 |
1467 const Experiment* experiments = kExperiments; | 1474 const Experiment* experiments = kExperiments; |
1468 size_t num_experiments = arraysize(kExperiments); | 1475 size_t num_experiments = arraysize(kExperiments); |
1469 | 1476 |
1470 // Stores and encapsulates the little state that about:flags has. | 1477 // Stores and encapsulates the little state that about:flags has. |
1471 class FlagsState { | 1478 class FlagsState { |
1472 public: | 1479 public: |
1473 FlagsState() : needs_restart_(false) {} | 1480 FlagsState() : needs_restart_(false) {} |
1474 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 1481 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1955 } | 1962 } |
1956 | 1963 |
1957 const Experiment* GetExperiments(size_t* count) { | 1964 const Experiment* GetExperiments(size_t* count) { |
1958 *count = num_experiments; | 1965 *count = num_experiments; |
1959 return experiments; | 1966 return experiments; |
1960 } | 1967 } |
1961 | 1968 |
1962 } // namespace testing | 1969 } // namespace testing |
1963 | 1970 |
1964 } // namespace about_flags | 1971 } // namespace about_flags |
OLD | NEW |