| 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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  420     kOsAll, |  420     kOsAll, | 
|  421     SINGLE_VALUE_TYPE(switches::kEnableVideoTrack) |  421     SINGLE_VALUE_TYPE(switches::kEnableVideoTrack) | 
|  422   }, |  422   }, | 
|  423   { |  423   { | 
|  424     "extension-alerts", |  424     "extension-alerts", | 
|  425     IDS_FLAGS_ENABLE_EXTENSION_ALERTS_NAME, |  425     IDS_FLAGS_ENABLE_EXTENSION_ALERTS_NAME, | 
|  426     IDS_FLAGS_ENABLE_EXTENSION_ALERTS_DESCRIPTION, |  426     IDS_FLAGS_ENABLE_EXTENSION_ALERTS_DESCRIPTION, | 
|  427     kOsAll, |  427     kOsAll, | 
|  428     SINGLE_VALUE_TYPE(switches::kEnableExtensionAlerts) |  428     SINGLE_VALUE_TYPE(switches::kEnableExtensionAlerts) | 
|  429   }, |  429   }, | 
 |  430   { | 
 |  431     "enable-http-pipelining", | 
 |  432     IDS_FLAGS_ENABLE_HTTP_PIPELINING_NAME, | 
 |  433     IDS_FLAGS_ENABLE_HTTP_PIPELINING_DESCRIPTION, | 
 |  434     kOsAll, | 
 |  435     SINGLE_VALUE_TYPE(switches::kEnableHttpPipelining) | 
 |  436   }, | 
|  430 }; |  437 }; | 
|  431  |  438  | 
|  432 const Experiment* experiments = kExperiments; |  439 const Experiment* experiments = kExperiments; | 
|  433 size_t num_experiments = arraysize(kExperiments); |  440 size_t num_experiments = arraysize(kExperiments); | 
|  434  |  441  | 
|  435 // Stores and encapsulates the little state that about:flags has. |  442 // Stores and encapsulates the little state that about:flags has. | 
|  436 class FlagsState { |  443 class FlagsState { | 
|  437  public: |  444  public: | 
|  438   FlagsState() : needs_restart_(false) {} |  445   FlagsState() : needs_restart_(false) {} | 
|  439   void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |  446   void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  849 } |  856 } | 
|  850  |  857  | 
|  851 const Experiment* GetExperiments(size_t* count) { |  858 const Experiment* GetExperiments(size_t* count) { | 
|  852   *count = num_experiments; |  859   *count = num_experiments; | 
|  853   return experiments; |  860   return experiments; | 
|  854 } |  861 } | 
|  855  |  862  | 
|  856 }  // namespace testing |  863 }  // namespace testing | 
|  857  |  864  | 
|  858 }  // namespace about_flags |  865 }  // namespace about_flags | 
| OLD | NEW |