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 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 }, | 848 }, |
849 #if defined(USE_ASH) | 849 #if defined(USE_ASH) |
850 { | 850 { |
851 "ash-debug-shortcuts", | 851 "ash-debug-shortcuts", |
852 IDS_FLAGS_DEBUG_SHORTCUTS_NAME, | 852 IDS_FLAGS_DEBUG_SHORTCUTS_NAME, |
853 IDS_FLAGS_DEBUG_SHORTCUTS_DESCRIPTION, | 853 IDS_FLAGS_DEBUG_SHORTCUTS_DESCRIPTION, |
854 kOsAll, | 854 kOsAll, |
855 SINGLE_VALUE_TYPE(ash::switches::kAshDebugShortcuts), | 855 SINGLE_VALUE_TYPE(ash::switches::kAshDebugShortcuts), |
856 }, | 856 }, |
857 #endif | 857 #endif |
| 858 #if defined(OS_LINUX) |
| 859 { |
| 860 "enable-tab-mru-switch", |
| 861 IDS_FLAGS_ENABLE_TAB_MRU_SWITCH, |
| 862 IDS_FLAGS_ENABLE_TAB_MRU_SWITCH_DESCRIPTION, |
| 863 kOsLinux, |
| 864 SINGLE_VALUE_TYPE(switches::kEnableTabMRUSwitch), |
| 865 }, |
| 866 #endif |
858 }; | 867 }; |
859 | 868 |
860 const Experiment* experiments = kExperiments; | 869 const Experiment* experiments = kExperiments; |
861 size_t num_experiments = arraysize(kExperiments); | 870 size_t num_experiments = arraysize(kExperiments); |
862 | 871 |
863 // Stores and encapsulates the little state that about:flags has. | 872 // Stores and encapsulates the little state that about:flags has. |
864 class FlagsState { | 873 class FlagsState { |
865 public: | 874 public: |
866 FlagsState() : needs_restart_(false) {} | 875 FlagsState() : needs_restart_(false) {} |
867 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 876 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1283 } | 1292 } |
1284 | 1293 |
1285 const Experiment* GetExperiments(size_t* count) { | 1294 const Experiment* GetExperiments(size_t* count) { |
1286 *count = num_experiments; | 1295 *count = num_experiments; |
1287 return experiments; | 1296 return experiments; |
1288 } | 1297 } |
1289 | 1298 |
1290 } // namespace testing | 1299 } // namespace testing |
1291 | 1300 |
1292 } // namespace about_flags | 1301 } // namespace about_flags |
OLD | NEW |