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 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 }, | 840 }, |
841 #if defined(USE_ASH) | 841 #if defined(USE_ASH) |
842 { | 842 { |
843 "ash-debug-shortcuts", | 843 "ash-debug-shortcuts", |
844 IDS_FLAGS_DEBUG_SHORTCUTS_NAME, | 844 IDS_FLAGS_DEBUG_SHORTCUTS_NAME, |
845 IDS_FLAGS_DEBUG_SHORTCUTS_DESCRIPTION, | 845 IDS_FLAGS_DEBUG_SHORTCUTS_DESCRIPTION, |
846 kOsAll, | 846 kOsAll, |
847 SINGLE_VALUE_TYPE(ash::switches::kAshDebugShortcuts), | 847 SINGLE_VALUE_TYPE(ash::switches::kAshDebugShortcuts), |
848 }, | 848 }, |
849 #endif | 849 #endif |
| 850 { |
| 851 "enable-speculative-resource-prefetching", |
| 852 IDS_FLAGS_ENABLE_SPECULATIVE_RESOURCE_PREFETCHING_NAME, |
| 853 IDS_FLAGS_ENABLE_SPECULATIVE_RESOURCE_PREFETCHING_DESCRIPTION, |
| 854 kOsAll, |
| 855 SINGLE_VALUE_TYPE(switches::kEnableSpeculativeResourcePrefetching), |
| 856 }, |
850 }; | 857 }; |
851 | 858 |
852 const Experiment* experiments = kExperiments; | 859 const Experiment* experiments = kExperiments; |
853 size_t num_experiments = arraysize(kExperiments); | 860 size_t num_experiments = arraysize(kExperiments); |
854 | 861 |
855 // Stores and encapsulates the little state that about:flags has. | 862 // Stores and encapsulates the little state that about:flags has. |
856 class FlagsState { | 863 class FlagsState { |
857 public: | 864 public: |
858 FlagsState() : needs_restart_(false) {} | 865 FlagsState() : needs_restart_(false) {} |
859 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 866 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1275 } | 1282 } |
1276 | 1283 |
1277 const Experiment* GetExperiments(size_t* count) { | 1284 const Experiment* GetExperiments(size_t* count) { |
1278 *count = num_experiments; | 1285 *count = num_experiments; |
1279 return experiments; | 1286 return experiments; |
1280 } | 1287 } |
1281 | 1288 |
1282 } // namespace testing | 1289 } // namespace testing |
1283 | 1290 |
1284 } // namespace about_flags | 1291 } // namespace about_flags |
OLD | NEW |