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 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 }, | 1265 }, |
1266 #if defined(OS_ANDROID) | 1266 #if defined(OS_ANDROID) |
1267 { | 1267 { |
1268 "disable-gesture-requirement-for-media-playback", | 1268 "disable-gesture-requirement-for-media-playback", |
1269 IDS_FLAGS_DISABLE_GESTURE_REQUIREMENT_FOR_MEDIA_PLAYBACK_NAME, | 1269 IDS_FLAGS_DISABLE_GESTURE_REQUIREMENT_FOR_MEDIA_PLAYBACK_NAME, |
1270 IDS_FLAGS_DISABLE_GESTURE_REQUIREMENT_FOR_MEDIA_PLAYBACK_DESCRIPTION, | 1270 IDS_FLAGS_DISABLE_GESTURE_REQUIREMENT_FOR_MEDIA_PLAYBACK_DESCRIPTION, |
1271 kOsAndroid, | 1271 kOsAndroid, |
1272 SINGLE_VALUE_TYPE(switches::kDisableGestureRequirementForMediaPlayback) | 1272 SINGLE_VALUE_TYPE(switches::kDisableGestureRequirementForMediaPlayback) |
1273 }, | 1273 }, |
1274 #endif | 1274 #endif |
| 1275 #if defined(OS_CHROMEOS) |
| 1276 { |
| 1277 "enable-experimental-bluetooth", |
| 1278 IDS_FLAGS_ENABLE_EXPERIMENTAL_BLUETOOTH_NAME, |
| 1279 IDS_FLAGS_ENABLE_EXPERIMENTAL_BLUETOOTH_DESCRIPTION, |
| 1280 kOsCrOS, |
| 1281 SINGLE_VALUE_TYPE(chromeos::switches::kEnableExperimentalBluetooth) |
| 1282 }, |
| 1283 #endif |
1275 }; | 1284 }; |
1276 | 1285 |
1277 const Experiment* experiments = kExperiments; | 1286 const Experiment* experiments = kExperiments; |
1278 size_t num_experiments = arraysize(kExperiments); | 1287 size_t num_experiments = arraysize(kExperiments); |
1279 | 1288 |
1280 // Stores and encapsulates the little state that about:flags has. | 1289 // Stores and encapsulates the little state that about:flags has. |
1281 class FlagsState { | 1290 class FlagsState { |
1282 public: | 1291 public: |
1283 FlagsState() : needs_restart_(false) {} | 1292 FlagsState() : needs_restart_(false) {} |
1284 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 1293 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1757 } | 1766 } |
1758 | 1767 |
1759 const Experiment* GetExperiments(size_t* count) { | 1768 const Experiment* GetExperiments(size_t* count) { |
1760 *count = num_experiments; | 1769 *count = num_experiments; |
1761 return experiments; | 1770 return experiments; |
1762 } | 1771 } |
1763 | 1772 |
1764 } // namespace testing | 1773 } // namespace testing |
1765 | 1774 |
1766 } // namespace about_flags | 1775 } // namespace about_flags |
OLD | NEW |