| 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 1762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1773 kOsWin | kOsCrOS, | 1773 kOsWin | kOsCrOS, |
| 1774 SINGLE_VALUE_TYPE(switches::kEnableStreamlinedHostedApps) | 1774 SINGLE_VALUE_TYPE(switches::kEnableStreamlinedHostedApps) |
| 1775 }, | 1775 }, |
| 1776 { | 1776 { |
| 1777 "enable-service-worker", | 1777 "enable-service-worker", |
| 1778 IDS_FLAGS_ENABLE_SERVICE_WORKER_NAME, | 1778 IDS_FLAGS_ENABLE_SERVICE_WORKER_NAME, |
| 1779 IDS_FLAGS_ENABLE_SERVICE_WORKER_DESCRIPTION, | 1779 IDS_FLAGS_ENABLE_SERVICE_WORKER_DESCRIPTION, |
| 1780 kOsAll, | 1780 kOsAll, |
| 1781 SINGLE_VALUE_TYPE(switches::kEnableServiceWorker) | 1781 SINGLE_VALUE_TYPE(switches::kEnableServiceWorker) |
| 1782 }, | 1782 }, |
| 1783 { |
| 1784 "enable-translate-new-ux", |
| 1785 IDS_FLAGS_ENABLE_TRANSLATE_NEW_UX_NAME, |
| 1786 IDS_FLAGS_ENABLE_TRANSLATE_NEW_UX_DESCRIPTION, |
| 1787 kOsDesktop, |
| 1788 SINGLE_VALUE_TYPE(switches::kEnableTranslateNewUX) |
| 1789 }, |
| 1783 }; | 1790 }; |
| 1784 | 1791 |
| 1785 const Experiment* experiments = kExperiments; | 1792 const Experiment* experiments = kExperiments; |
| 1786 size_t num_experiments = arraysize(kExperiments); | 1793 size_t num_experiments = arraysize(kExperiments); |
| 1787 | 1794 |
| 1788 // Stores and encapsulates the little state that about:flags has. | 1795 // Stores and encapsulates the little state that about:flags has. |
| 1789 class FlagsState { | 1796 class FlagsState { |
| 1790 public: | 1797 public: |
| 1791 FlagsState() : needs_restart_(false) {} | 1798 FlagsState() : needs_restart_(false) {} |
| 1792 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1799 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2273 } | 2280 } |
| 2274 | 2281 |
| 2275 const Experiment* GetExperiments(size_t* count) { | 2282 const Experiment* GetExperiments(size_t* count) { |
| 2276 *count = num_experiments; | 2283 *count = num_experiments; |
| 2277 return experiments; | 2284 return experiments; |
| 2278 } | 2285 } |
| 2279 | 2286 |
| 2280 } // namespace testing | 2287 } // namespace testing |
| 2281 | 2288 |
| 2282 } // namespace about_flags | 2289 } // namespace about_flags |
| OLD | NEW |