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 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 }, | 884 }, |
885 #if defined(USE_ASH) | 885 #if defined(USE_ASH) |
886 { | 886 { |
887 "ash-debug-shortcuts", | 887 "ash-debug-shortcuts", |
888 IDS_FLAGS_DEBUG_SHORTCUTS_NAME, | 888 IDS_FLAGS_DEBUG_SHORTCUTS_NAME, |
889 IDS_FLAGS_DEBUG_SHORTCUTS_DESCRIPTION, | 889 IDS_FLAGS_DEBUG_SHORTCUTS_DESCRIPTION, |
890 kOsAll, | 890 kOsAll, |
891 SINGLE_VALUE_TYPE(ash::switches::kAshDebugShortcuts), | 891 SINGLE_VALUE_TYPE(ash::switches::kAshDebugShortcuts), |
892 }, | 892 }, |
893 #endif | 893 #endif |
| 894 { |
| 895 "enable-website-settings", // FLAGS:RECORD_UMA |
| 896 IDS_FLAGS_ENABLE_WEBSITE_SETTINGS_NAME, |
| 897 IDS_FLAGS_ENABLE_WEBSITE_SETTINGS_DESCRIPTION, |
| 898 kOsAll, |
| 899 SINGLE_VALUE_TYPE(switches::kEnableWebsiteSettings), |
| 900 }, |
894 }; | 901 }; |
895 | 902 |
896 const Experiment* experiments = kExperiments; | 903 const Experiment* experiments = kExperiments; |
897 size_t num_experiments = arraysize(kExperiments); | 904 size_t num_experiments = arraysize(kExperiments); |
898 | 905 |
899 // Stores and encapsulates the little state that about:flags has. | 906 // Stores and encapsulates the little state that about:flags has. |
900 class FlagsState { | 907 class FlagsState { |
901 public: | 908 public: |
902 FlagsState() : needs_restart_(false) {} | 909 FlagsState() : needs_restart_(false) {} |
903 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 910 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 } | 1327 } |
1321 | 1328 |
1322 const Experiment* GetExperiments(size_t* count) { | 1329 const Experiment* GetExperiments(size_t* count) { |
1323 *count = num_experiments; | 1330 *count = num_experiments; |
1324 return experiments; | 1331 return experiments; |
1325 } | 1332 } |
1326 | 1333 |
1327 } // namespace testing | 1334 } // namespace testing |
1328 | 1335 |
1329 } // namespace about_flags | 1336 } // namespace about_flags |
OLD | NEW |