| 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 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1771 }, | 1771 }, |
| 1772 #if defined(OS_CHROMEOS) | 1772 #if defined(OS_CHROMEOS) |
| 1773 { | 1773 { |
| 1774 "enable-filemanager-mtp", | 1774 "enable-filemanager-mtp", |
| 1775 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_NAME, | 1775 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_NAME, |
| 1776 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_DESCRIPTION, | 1776 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_DESCRIPTION, |
| 1777 kOsCrOS, | 1777 kOsCrOS, |
| 1778 SINGLE_VALUE_TYPE(chromeos::switches::kEnableFileManagerMTP) | 1778 SINGLE_VALUE_TYPE(chromeos::switches::kEnableFileManagerMTP) |
| 1779 }, | 1779 }, |
| 1780 #endif | 1780 #endif |
| 1781 #if defined(USE_AURA) |
| 1782 { |
| 1783 "text-input-focus-manager", |
| 1784 IDS_FLAGS_TEXT_INPUT_FOCUS_MANAGER_NAME, |
| 1785 IDS_FLAGS_TEXT_INPUT_FOCUS_MANAGER_DESCRIPTION, |
| 1786 kOsCrOS | kOsLinux | kOsWin, |
| 1787 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTextInputFocusManager, |
| 1788 switches::kDisableTextInputFocusManager) |
| 1789 }, |
| 1790 #endif |
| 1781 }; | 1791 }; |
| 1782 | 1792 |
| 1783 const Experiment* experiments = kExperiments; | 1793 const Experiment* experiments = kExperiments; |
| 1784 size_t num_experiments = arraysize(kExperiments); | 1794 size_t num_experiments = arraysize(kExperiments); |
| 1785 | 1795 |
| 1786 // Stores and encapsulates the little state that about:flags has. | 1796 // Stores and encapsulates the little state that about:flags has. |
| 1787 class FlagsState { | 1797 class FlagsState { |
| 1788 public: | 1798 public: |
| 1789 FlagsState() : needs_restart_(false) {} | 1799 FlagsState() : needs_restart_(false) {} |
| 1790 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1800 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2295 } | 2305 } |
| 2296 | 2306 |
| 2297 const Experiment* GetExperiments(size_t* count) { | 2307 const Experiment* GetExperiments(size_t* count) { |
| 2298 *count = num_experiments; | 2308 *count = num_experiments; |
| 2299 return experiments; | 2309 return experiments; |
| 2300 } | 2310 } |
| 2301 | 2311 |
| 2302 } // namespace testing | 2312 } // namespace testing |
| 2303 | 2313 |
| 2304 } // namespace about_flags | 2314 } // namespace about_flags |
| OLD | NEW |