OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 IDS_FLAGS_WEBAUDIO_NAME, | 230 IDS_FLAGS_WEBAUDIO_NAME, |
231 IDS_FLAGS_WEBAUDIO_DESCRIPTION, | 231 IDS_FLAGS_WEBAUDIO_DESCRIPTION, |
232 kOsMac, // TODO(crogers): add windows and linux when FFT is ready. | 232 kOsMac, // TODO(crogers): add windows and linux when FFT is ready. |
233 SINGLE_VALUE_TYPE(switches::kEnableWebAudio) | 233 SINGLE_VALUE_TYPE(switches::kEnableWebAudio) |
234 }, | 234 }, |
235 { | 235 { |
236 "p2papi", | 236 "p2papi", |
237 IDS_FLAGS_P2P_API_NAME, | 237 IDS_FLAGS_P2P_API_NAME, |
238 IDS_FLAGS_P2P_API_DESCRIPTION, | 238 IDS_FLAGS_P2P_API_DESCRIPTION, |
239 kOsAll, | 239 kOsAll, |
| 240 #if defined(ENABLE_P2P_APIS) |
240 SINGLE_VALUE_TYPE(switches::kEnableP2PApi) | 241 SINGLE_VALUE_TYPE(switches::kEnableP2PApi) |
| 242 #else |
| 243 SINGLE_VALUE_TYPE("") |
| 244 #endif |
241 }, | 245 }, |
242 { | 246 { |
243 "focus-existing-tab-on-open", // FLAGS:RECORD_UMA | 247 "focus-existing-tab-on-open", // FLAGS:RECORD_UMA |
244 IDS_FLAGS_FOCUS_EXISTING_TAB_ON_OPEN_NAME, | 248 IDS_FLAGS_FOCUS_EXISTING_TAB_ON_OPEN_NAME, |
245 IDS_FLAGS_FOCUS_EXISTING_TAB_ON_OPEN_DESCRIPTION, | 249 IDS_FLAGS_FOCUS_EXISTING_TAB_ON_OPEN_DESCRIPTION, |
246 kOsAll, | 250 kOsAll, |
247 SINGLE_VALUE_TYPE(switches::kFocusExistingTabOnOpen) | 251 SINGLE_VALUE_TYPE(switches::kFocusExistingTabOnOpen) |
248 }, | 252 }, |
249 { | 253 { |
250 "new-tab-page-4", | 254 "new-tab-page-4", |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 } | 733 } |
730 | 734 |
731 const Experiment* GetExperiments(size_t* count) { | 735 const Experiment* GetExperiments(size_t* count) { |
732 *count = num_experiments; | 736 *count = num_experiments; |
733 return experiments; | 737 return experiments; |
734 } | 738 } |
735 | 739 |
736 } // namespace testing | 740 } // namespace testing |
737 | 741 |
738 } // namespace about_flags | 742 } // namespace about_flags |
OLD | NEW |