| 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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 SINGLE_VALUE_TYPE(ash::switches::kAshTouchHud) | 718 SINGLE_VALUE_TYPE(ash::switches::kAshTouchHud) |
| 719 }, | 719 }, |
| 720 { | 720 { |
| 721 "ash-notify", | 721 "ash-notify", |
| 722 IDS_FLAGS_ENABLE_ASH_NOTIFY_NAME, | 722 IDS_FLAGS_ENABLE_ASH_NOTIFY_NAME, |
| 723 IDS_FLAGS_ENABLE_ASH_NOTIFY_DESCRIPTION, | 723 IDS_FLAGS_ENABLE_ASH_NOTIFY_DESCRIPTION, |
| 724 kOsAll, | 724 kOsAll, |
| 725 SINGLE_VALUE_TYPE(ash::switches::kAshNotify), | 725 SINGLE_VALUE_TYPE(ash::switches::kAshNotify), |
| 726 }, | 726 }, |
| 727 #endif // defined(USE_ASH) | 727 #endif // defined(USE_ASH) |
| 728 { |
| 729 "enable-speculative-resource-prefetching", |
| 730 IDS_FLAGS_ENABLE_SPECULATIVE_RESOURCE_PREFETCHING_NAME, |
| 731 IDS_FLAGS_ENABLE_SPECULATIVE_RESOURCE_PREFETCHING_DESCRIPTION, |
| 732 kOsAll, |
| 733 SINGLE_VALUE_TYPE(switches::kEnableSpeculativeResourcePrefetching), |
| 734 }, |
| 728 }; | 735 }; |
| 729 | 736 |
| 730 const Experiment* experiments = kExperiments; | 737 const Experiment* experiments = kExperiments; |
| 731 size_t num_experiments = arraysize(kExperiments); | 738 size_t num_experiments = arraysize(kExperiments); |
| 732 | 739 |
| 733 // Stores and encapsulates the little state that about:flags has. | 740 // Stores and encapsulates the little state that about:flags has. |
| 734 class FlagsState { | 741 class FlagsState { |
| 735 public: | 742 public: |
| 736 FlagsState() : needs_restart_(false) {} | 743 FlagsState() : needs_restart_(false) {} |
| 737 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 744 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1153 } | 1160 } |
| 1154 | 1161 |
| 1155 const Experiment* GetExperiments(size_t* count) { | 1162 const Experiment* GetExperiments(size_t* count) { |
| 1156 *count = num_experiments; | 1163 *count = num_experiments; |
| 1157 return experiments; | 1164 return experiments; |
| 1158 } | 1165 } |
| 1159 | 1166 |
| 1160 } // namespace testing | 1167 } // namespace testing |
| 1161 | 1168 |
| 1162 } // namespace about_flags | 1169 } // namespace about_flags |
| OLD | NEW |