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 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1789 SINGLE_VALUE_TYPE(switches::kEnableEasyUnlock) | 1789 SINGLE_VALUE_TYPE(switches::kEnableEasyUnlock) |
1790 }, | 1790 }, |
1791 #endif | 1791 #endif |
1792 { | 1792 { |
1793 "enable-embedded-shared-worker", | 1793 "enable-embedded-shared-worker", |
1794 IDS_FLAGS_ENABLE_EMBEDDED_SHARED_WORKER_NAME, | 1794 IDS_FLAGS_ENABLE_EMBEDDED_SHARED_WORKER_NAME, |
1795 IDS_FLAGS_ENABLE_EMBEDDED_SHARED_WORKER_DESCRIPTION, | 1795 IDS_FLAGS_ENABLE_EMBEDDED_SHARED_WORKER_DESCRIPTION, |
1796 kOsDesktop, | 1796 kOsDesktop, |
1797 SINGLE_VALUE_TYPE(switches::kEnableEmbeddedSharedWorker) | 1797 SINGLE_VALUE_TYPE(switches::kEnableEmbeddedSharedWorker) |
1798 }, | 1798 }, |
| 1799 { |
| 1800 "enable-apps-file-associations", |
| 1801 IDS_FLAGS_ENABLE_APPS_FILE_ASSOCIATIONS_NAME, |
| 1802 IDS_FLAGS_ENABLE_APPS_FILE_ASSOCIATIONS_DESCRIPTION, |
| 1803 kOsMac, |
| 1804 SINGLE_VALUE_TYPE(switches::kEnableAppsFileAssociations) |
| 1805 }, |
1799 }; | 1806 }; |
1800 | 1807 |
1801 const Experiment* experiments = kExperiments; | 1808 const Experiment* experiments = kExperiments; |
1802 size_t num_experiments = arraysize(kExperiments); | 1809 size_t num_experiments = arraysize(kExperiments); |
1803 | 1810 |
1804 // Stores and encapsulates the little state that about:flags has. | 1811 // Stores and encapsulates the little state that about:flags has. |
1805 class FlagsState { | 1812 class FlagsState { |
1806 public: | 1813 public: |
1807 FlagsState() : needs_restart_(false) {} | 1814 FlagsState() : needs_restart_(false) {} |
1808 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1815 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2313 } | 2320 } |
2314 | 2321 |
2315 const Experiment* GetExperiments(size_t* count) { | 2322 const Experiment* GetExperiments(size_t* count) { |
2316 *count = num_experiments; | 2323 *count = num_experiments; |
2317 return experiments; | 2324 return experiments; |
2318 } | 2325 } |
2319 | 2326 |
2320 } // namespace testing | 2327 } // namespace testing |
2321 | 2328 |
2322 } // namespace about_flags | 2329 } // namespace about_flags |
OLD | NEW |