| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1779 kOsAll, | 1779 kOsAll, |
| 1780 SINGLE_VALUE_TYPE(cc::switches::kDisableCompositorTouchHitTesting), | 1780 SINGLE_VALUE_TYPE(cc::switches::kDisableCompositorTouchHitTesting), |
| 1781 }, | 1781 }, |
| 1782 { | 1782 { |
| 1783 "enable-streamlined-hosted-apps", | 1783 "enable-streamlined-hosted-apps", |
| 1784 IDS_FLAGS_ENABLE_STREAMLINED_HOSTED_APPS_NAME, | 1784 IDS_FLAGS_ENABLE_STREAMLINED_HOSTED_APPS_NAME, |
| 1785 IDS_FLAGS_ENABLE_STREAMLINED_HOSTED_APPS_DESCRIPTION, | 1785 IDS_FLAGS_ENABLE_STREAMLINED_HOSTED_APPS_DESCRIPTION, |
| 1786 kOsWin | kOsCrOS, | 1786 kOsWin | kOsCrOS, |
| 1787 SINGLE_VALUE_TYPE(switches::kEnableStreamlinedHostedApps) | 1787 SINGLE_VALUE_TYPE(switches::kEnableStreamlinedHostedApps) |
| 1788 }, | 1788 }, |
| 1789 { |
| 1790 "enable-service-worker", |
| 1791 IDS_FLAGS_ENABLE_SERVICE_WORKER_NAME, |
| 1792 IDS_FLAGS_ENABLE_SERVICE_WORKER_DESCRIPTION, |
| 1793 kOsAll, |
| 1794 SINGLE_VALUE_TYPE(switches::kEnableServiceWorker) |
| 1795 }, |
| 1789 }; | 1796 }; |
| 1790 | 1797 |
| 1791 const Experiment* experiments = kExperiments; | 1798 const Experiment* experiments = kExperiments; |
| 1792 size_t num_experiments = arraysize(kExperiments); | 1799 size_t num_experiments = arraysize(kExperiments); |
| 1793 | 1800 |
| 1794 // Stores and encapsulates the little state that about:flags has. | 1801 // Stores and encapsulates the little state that about:flags has. |
| 1795 class FlagsState { | 1802 class FlagsState { |
| 1796 public: | 1803 public: |
| 1797 FlagsState() : needs_restart_(false) {} | 1804 FlagsState() : needs_restart_(false) {} |
| 1798 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1805 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2279 } | 2286 } |
| 2280 | 2287 |
| 2281 const Experiment* GetExperiments(size_t* count) { | 2288 const Experiment* GetExperiments(size_t* count) { |
| 2282 *count = num_experiments; | 2289 *count = num_experiments; |
| 2283 return experiments; | 2290 return experiments; |
| 2284 } | 2291 } |
| 2285 | 2292 |
| 2286 } // namespace testing | 2293 } // namespace testing |
| 2287 | 2294 |
| 2288 } // namespace about_flags | 2295 } // namespace about_flags |
| OLD | NEW |