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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 }, | 833 }, |
834 #if defined(USE_ASH) | 834 #if defined(USE_ASH) |
835 { | 835 { |
836 "ash-debug-shortcuts", | 836 "ash-debug-shortcuts", |
837 IDS_FLAGS_DEBUG_SHORTCUTS_NAME, | 837 IDS_FLAGS_DEBUG_SHORTCUTS_NAME, |
838 IDS_FLAGS_DEBUG_SHORTCUTS_DESCRIPTION, | 838 IDS_FLAGS_DEBUG_SHORTCUTS_DESCRIPTION, |
839 kOsAll, | 839 kOsAll, |
840 SINGLE_VALUE_TYPE(ash::switches::kAshDebugShortcuts), | 840 SINGLE_VALUE_TYPE(ash::switches::kAshDebugShortcuts), |
841 }, | 841 }, |
842 #endif | 842 #endif |
843 { | |
844 "enable-speculative-resource-prefetching", | |
845 IDS_FLAGS_ENABLE_SPECULATIVE_RESOURCE_PREFETCHING_NAME, | |
846 IDS_FLAGS_ENABLE_SPECULATIVE_RESOURCE_PREFETCHING_DESCRIPTION, | |
847 kOsAll, | |
848 SINGLE_VALUE_TYPE(switches::kEnableSpeculativeResourcePrefetching), | |
849 }, | |
850 }; | 843 }; |
851 | 844 |
852 const Experiment* experiments = kExperiments; | 845 const Experiment* experiments = kExperiments; |
853 size_t num_experiments = arraysize(kExperiments); | 846 size_t num_experiments = arraysize(kExperiments); |
854 | 847 |
855 // Stores and encapsulates the little state that about:flags has. | 848 // Stores and encapsulates the little state that about:flags has. |
856 class FlagsState { | 849 class FlagsState { |
857 public: | 850 public: |
858 FlagsState() : needs_restart_(false) {} | 851 FlagsState() : needs_restart_(false) {} |
859 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 852 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1275 } | 1268 } |
1276 | 1269 |
1277 const Experiment* GetExperiments(size_t* count) { | 1270 const Experiment* GetExperiments(size_t* count) { |
1278 *count = num_experiments; | 1271 *count = num_experiments; |
1279 return experiments; | 1272 return experiments; |
1280 } | 1273 } |
1281 | 1274 |
1282 } // namespace testing | 1275 } // namespace testing |
1283 | 1276 |
1284 } // namespace about_flags | 1277 } // namespace about_flags |
OLD | NEW |