| 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 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 SINGLE_VALUE_TYPE(switches::kEnableContacts) | 916 SINGLE_VALUE_TYPE(switches::kEnableContacts) |
| 917 }, | 917 }, |
| 918 #if defined(USE_ASH) | 918 #if defined(USE_ASH) |
| 919 { "ash-enable-advanced-gestures", | 919 { "ash-enable-advanced-gestures", |
| 920 IDS_FLAGS_ENABLE_ADVANCED_GESTURES_NAME, | 920 IDS_FLAGS_ENABLE_ADVANCED_GESTURES_NAME, |
| 921 IDS_FLAGS_ENABLE_ADVANCED_GESTURES_DESCRIPTION, | 921 IDS_FLAGS_ENABLE_ADVANCED_GESTURES_DESCRIPTION, |
| 922 kOsCrOS, | 922 kOsCrOS, |
| 923 SINGLE_VALUE_TYPE(ash::switches::kAshEnableAdvancedGestures), | 923 SINGLE_VALUE_TYPE(ash::switches::kAshEnableAdvancedGestures), |
| 924 }, | 924 }, |
| 925 #endif | 925 #endif |
| 926 #if defined(OS_CHROMEOS) |
| 927 { |
| 928 "enable-request-tablet-site", |
| 929 IDS_FLAGS_ENABLE_REQUEST_TABLET_SITE_NAME, |
| 930 IDS_FLAGS_ENABLE_REQUEST_TABLET_SITE_DESCRIPTION, |
| 931 kOsCrOS, |
| 932 SINGLE_VALUE_TYPE(switches::kEnableRequestTabletSite) |
| 933 }, |
| 934 #endif |
| 926 }; | 935 }; |
| 927 | 936 |
| 928 const Experiment* experiments = kExperiments; | 937 const Experiment* experiments = kExperiments; |
| 929 size_t num_experiments = arraysize(kExperiments); | 938 size_t num_experiments = arraysize(kExperiments); |
| 930 | 939 |
| 931 // Stores and encapsulates the little state that about:flags has. | 940 // Stores and encapsulates the little state that about:flags has. |
| 932 class FlagsState { | 941 class FlagsState { |
| 933 public: | 942 public: |
| 934 FlagsState() : needs_restart_(false) {} | 943 FlagsState() : needs_restart_(false) {} |
| 935 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 944 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1352 } | 1361 } |
| 1353 | 1362 |
| 1354 const Experiment* GetExperiments(size_t* count) { | 1363 const Experiment* GetExperiments(size_t* count) { |
| 1355 *count = num_experiments; | 1364 *count = num_experiments; |
| 1356 return experiments; | 1365 return experiments; |
| 1357 } | 1366 } |
| 1358 | 1367 |
| 1359 } // namespace testing | 1368 } // namespace testing |
| 1360 | 1369 |
| 1361 } // namespace about_flags | 1370 } // namespace about_flags |
| OLD | NEW |