| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 kOsAll, | 366 kOsAll, |
| 367 SINGLE_VALUE_TYPE(switches::kEnableAutofillFeedback) | 367 SINGLE_VALUE_TYPE(switches::kEnableAutofillFeedback) |
| 368 }, | 368 }, |
| 369 { | 369 { |
| 370 "panels", | 370 "panels", |
| 371 IDS_FLAGS_ENABLE_PANELS_NAME, | 371 IDS_FLAGS_ENABLE_PANELS_NAME, |
| 372 IDS_FLAGS_ENABLE_PANELS_DESCRIPTION, | 372 IDS_FLAGS_ENABLE_PANELS_DESCRIPTION, |
| 373 kOsAll, | 373 kOsAll, |
| 374 SINGLE_VALUE_TYPE(switches::kEnablePanels) | 374 SINGLE_VALUE_TYPE(switches::kEnablePanels) |
| 375 }, | 375 }, |
| 376 { |
| 377 "enable-http-pipelining", |
| 378 IDS_FLAGS_ENABLE_HTTP_PIPELINING_NAME, |
| 379 IDS_FLAGS_ENABLE_HTTP_PIPELINING_DESCRIPTION, |
| 380 kOsAll, |
| 381 SINGLE_VALUE_TYPE(switches::kEnableHttpPipelining) |
| 382 }, |
| 376 }; | 383 }; |
| 377 | 384 |
| 378 const Experiment* experiments = kExperiments; | 385 const Experiment* experiments = kExperiments; |
| 379 size_t num_experiments = arraysize(kExperiments); | 386 size_t num_experiments = arraysize(kExperiments); |
| 380 | 387 |
| 381 // Stores and encapsulates the little state that about:flags has. | 388 // Stores and encapsulates the little state that about:flags has. |
| 382 class FlagsState { | 389 class FlagsState { |
| 383 public: | 390 public: |
| 384 FlagsState() : needs_restart_(false) {} | 391 FlagsState() : needs_restart_(false) {} |
| 385 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 392 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 } | 813 } |
| 807 | 814 |
| 808 const Experiment* GetExperiments(size_t* count) { | 815 const Experiment* GetExperiments(size_t* count) { |
| 809 *count = num_experiments; | 816 *count = num_experiments; |
| 810 return experiments; | 817 return experiments; |
| 811 } | 818 } |
| 812 | 819 |
| 813 } // namespace testing | 820 } // namespace testing |
| 814 | 821 |
| 815 } // namespace about_flags | 822 } // namespace about_flags |
| OLD | NEW |