Chromium Code Reviews| 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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 397 kOsAll, | 397 kOsAll, |
| 398 SINGLE_VALUE_TYPE(switches::kDownloadsNewUI) | 398 SINGLE_VALUE_TYPE(switches::kDownloadsNewUI) |
| 399 }, | 399 }, |
| 400 { | 400 { |
| 401 "enable-autologin", | 401 "enable-autologin", |
| 402 IDS_FLAGS_ENABLE_AUTOLOGIN_NAME, | 402 IDS_FLAGS_ENABLE_AUTOLOGIN_NAME, |
| 403 IDS_FLAGS_ENABLE_AUTOLOGIN_DESCRIPTION, | 403 IDS_FLAGS_ENABLE_AUTOLOGIN_DESCRIPTION, |
| 404 kOsMac | kOsWin | kOsLinux, | 404 kOsMac | kOsWin | kOsLinux, |
| 405 SINGLE_VALUE_TYPE(switches::kEnableAutologin) | 405 SINGLE_VALUE_TYPE(switches::kEnableAutologin) |
| 406 }, | 406 }, |
| 407 { | |
| 408 "enable-http-pipelining", | |
|
mmenke
2011/09/15 19:28:16
You used to read this flag in browser_main.cc. Yo
James Simonsen
2011/09/17 01:23:02
Done.
Oops. Must've lost it in a merge.
| |
| 409 IDS_FLAGS_ENABLE_HTTP_PIPELINING_NAME, | |
| 410 IDS_FLAGS_ENABLE_HTTP_PIPELINING_DESCRIPTION, | |
| 411 kOsAll, | |
| 412 SINGLE_VALUE_TYPE(switches::kEnableHttpPipelining) | |
| 413 }, | |
| 407 }; | 414 }; |
| 408 | 415 |
| 409 const Experiment* experiments = kExperiments; | 416 const Experiment* experiments = kExperiments; |
| 410 size_t num_experiments = arraysize(kExperiments); | 417 size_t num_experiments = arraysize(kExperiments); |
| 411 | 418 |
| 412 // Stores and encapsulates the little state that about:flags has. | 419 // Stores and encapsulates the little state that about:flags has. |
| 413 class FlagsState { | 420 class FlagsState { |
| 414 public: | 421 public: |
| 415 FlagsState() : needs_restart_(false) {} | 422 FlagsState() : needs_restart_(false) {} |
| 416 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 423 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 826 } | 833 } |
| 827 | 834 |
| 828 const Experiment* GetExperiments(size_t* count) { | 835 const Experiment* GetExperiments(size_t* count) { |
| 829 *count = num_experiments; | 836 *count = num_experiments; |
| 830 return experiments; | 837 return experiments; |
| 831 } | 838 } |
| 832 | 839 |
| 833 } // namespace testing | 840 } // namespace testing |
| 834 | 841 |
| 835 } // namespace about_flags | 842 } // namespace about_flags |
| OLD | NEW |