| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 kOsMac, // TODO(crogers): add windows and linux when FFT is ready. | 247 kOsMac, // TODO(crogers): add windows and linux when FFT is ready. |
| 248 SINGLE_VALUE_TYPE(switches::kEnableWebAudio) | 248 SINGLE_VALUE_TYPE(switches::kEnableWebAudio) |
| 249 }, | 249 }, |
| 250 { | 250 { |
| 251 "enable-history-quick-provider", | 251 "enable-history-quick-provider", |
| 252 IDS_FLAGS_ENABLE_HISTORY_QUICK_PROVIDER, | 252 IDS_FLAGS_ENABLE_HISTORY_QUICK_PROVIDER, |
| 253 IDS_FLAGS_ENABLE_HISTORY_QUICK_PROVIDER_DESCRIPTION, | 253 IDS_FLAGS_ENABLE_HISTORY_QUICK_PROVIDER_DESCRIPTION, |
| 254 kOsAll, | 254 kOsAll, |
| 255 SINGLE_VALUE_TYPE(switches::kEnableHistoryQuickProvider) | 255 SINGLE_VALUE_TYPE(switches::kEnableHistoryQuickProvider) |
| 256 }, | 256 }, |
| 257 { |
| 258 "p2papi", |
| 259 IDS_FLAGS_P2P_API_NAME, |
| 260 IDS_FLAGS_P2P_API_DESCRIPTION, |
| 261 kOsAll, |
| 262 SINGLE_VALUE_TYPE(switches::kEnableP2PApi) |
| 263 }, |
| 257 }; | 264 }; |
| 258 | 265 |
| 259 const Experiment* experiments = kExperiments; | 266 const Experiment* experiments = kExperiments; |
| 260 size_t num_experiments = arraysize(kExperiments); | 267 size_t num_experiments = arraysize(kExperiments); |
| 261 | 268 |
| 262 // Stores and encapsulates the little state that about:flags has. | 269 // Stores and encapsulates the little state that about:flags has. |
| 263 class FlagsState { | 270 class FlagsState { |
| 264 public: | 271 public: |
| 265 FlagsState() : needs_restart_(false) {} | 272 FlagsState() : needs_restart_(false) {} |
| 266 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 273 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 } | 685 } |
| 679 | 686 |
| 680 const Experiment* GetExperiments(size_t* count) { | 687 const Experiment* GetExperiments(size_t* count) { |
| 681 *count = num_experiments; | 688 *count = num_experiments; |
| 682 return experiments; | 689 return experiments; |
| 683 } | 690 } |
| 684 | 691 |
| 685 } // namespace testing | 692 } // namespace testing |
| 686 | 693 |
| 687 } // namespace about_flags | 694 } // namespace about_flags |
| OLD | NEW |