| 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 kOsAll, | 406 kOsAll, |
| 407 SINGLE_VALUE_TYPE(switches::kDownloadsNewUI) | 407 SINGLE_VALUE_TYPE(switches::kDownloadsNewUI) |
| 408 }, | 408 }, |
| 409 { | 409 { |
| 410 "enable-autologin", | 410 "enable-autologin", |
| 411 IDS_FLAGS_ENABLE_AUTOLOGIN_NAME, | 411 IDS_FLAGS_ENABLE_AUTOLOGIN_NAME, |
| 412 IDS_FLAGS_ENABLE_AUTOLOGIN_DESCRIPTION, | 412 IDS_FLAGS_ENABLE_AUTOLOGIN_DESCRIPTION, |
| 413 kOsMac | kOsWin | kOsLinux, | 413 kOsMac | kOsWin | kOsLinux, |
| 414 SINGLE_VALUE_TYPE(switches::kEnableAutologin) | 414 SINGLE_VALUE_TYPE(switches::kEnableAutologin) |
| 415 }, | 415 }, |
| 416 { |
| 417 "enable-http-pipelining", |
| 418 IDS_FLAGS_ENABLE_HTTP_PIPELINING_NAME, |
| 419 IDS_FLAGS_ENABLE_HTTP_PIPELINING_DESCRIPTION, |
| 420 kOsAll, |
| 421 SINGLE_VALUE_TYPE(switches::kEnableHttpPipelining) |
| 422 }, |
| 416 }; | 423 }; |
| 417 | 424 |
| 418 const Experiment* experiments = kExperiments; | 425 const Experiment* experiments = kExperiments; |
| 419 size_t num_experiments = arraysize(kExperiments); | 426 size_t num_experiments = arraysize(kExperiments); |
| 420 | 427 |
| 421 // Stores and encapsulates the little state that about:flags has. | 428 // Stores and encapsulates the little state that about:flags has. |
| 422 class FlagsState { | 429 class FlagsState { |
| 423 public: | 430 public: |
| 424 FlagsState() : needs_restart_(false) {} | 431 FlagsState() : needs_restart_(false) {} |
| 425 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 432 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 } | 842 } |
| 836 | 843 |
| 837 const Experiment* GetExperiments(size_t* count) { | 844 const Experiment* GetExperiments(size_t* count) { |
| 838 *count = num_experiments; | 845 *count = num_experiments; |
| 839 return experiments; | 846 return experiments; |
| 840 } | 847 } |
| 841 | 848 |
| 842 } // namespace testing | 849 } // namespace testing |
| 843 | 850 |
| 844 } // namespace about_flags | 851 } // namespace about_flags |
| OLD | NEW |