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 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1453 kOsAll, | 1453 kOsAll, |
1454 SINGLE_VALUE_TYPE(switches::kEnableWebPInAcceptHeader) | 1454 SINGLE_VALUE_TYPE(switches::kEnableWebPInAcceptHeader) |
1455 }, | 1455 }, |
1456 { | 1456 { |
1457 "apps-use-native-frame", | 1457 "apps-use-native-frame", |
1458 IDS_FLAGS_ENABLE_NATIVE_FRAMES_FOR_APPS_NAME, | 1458 IDS_FLAGS_ENABLE_NATIVE_FRAMES_FOR_APPS_NAME, |
1459 IDS_FLAGS_ENABLE_NATIVE_FRAMES_FOR_APPS_DESCRIPTION, | 1459 IDS_FLAGS_ENABLE_NATIVE_FRAMES_FOR_APPS_DESCRIPTION, |
1460 kOsWin, | 1460 kOsWin, |
1461 SINGLE_VALUE_TYPE(switches::kAppsUseNativeFrame) | 1461 SINGLE_VALUE_TYPE(switches::kAppsUseNativeFrame) |
1462 }, | 1462 }, |
| 1463 { |
| 1464 "disable-prerender-local-predictor", |
| 1465 IDS_FLAGS_DISABLE_PRERENDER_LOCAL_PREDICTOR_NAME, |
| 1466 IDS_FLAGS_DISABLE_PRERENDER_LOCAL_PREDICTOR_DESCRIPTION, |
| 1467 kOsDesktop, |
| 1468 SINGLE_VALUE_TYPE(switches::kDisablePrerenderLocalPredictor) |
| 1469 }, |
1463 }; | 1470 }; |
1464 | 1471 |
1465 const Experiment* experiments = kExperiments; | 1472 const Experiment* experiments = kExperiments; |
1466 size_t num_experiments = arraysize(kExperiments); | 1473 size_t num_experiments = arraysize(kExperiments); |
1467 | 1474 |
1468 // Stores and encapsulates the little state that about:flags has. | 1475 // Stores and encapsulates the little state that about:flags has. |
1469 class FlagsState { | 1476 class FlagsState { |
1470 public: | 1477 public: |
1471 FlagsState() : needs_restart_(false) {} | 1478 FlagsState() : needs_restart_(false) {} |
1472 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 1479 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1953 } | 1960 } |
1954 | 1961 |
1955 const Experiment* GetExperiments(size_t* count) { | 1962 const Experiment* GetExperiments(size_t* count) { |
1956 *count = num_experiments; | 1963 *count = num_experiments; |
1957 return experiments; | 1964 return experiments; |
1958 } | 1965 } |
1959 | 1966 |
1960 } // namespace testing | 1967 } // namespace testing |
1961 | 1968 |
1962 } // namespace about_flags | 1969 } // namespace about_flags |
OLD | NEW |