| 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 }, | 1779 }, |
| 1780 #if defined(OS_CHROMEOS) | 1780 #if defined(OS_CHROMEOS) |
| 1781 { | 1781 { |
| 1782 "enable-filemanager-mtp", | 1782 "enable-filemanager-mtp", |
| 1783 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_NAME, | 1783 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_NAME, |
| 1784 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_DESCRIPTION, | 1784 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_DESCRIPTION, |
| 1785 kOsCrOS, | 1785 kOsCrOS, |
| 1786 SINGLE_VALUE_TYPE(chromeos::switches::kEnableFileManagerMTP) | 1786 SINGLE_VALUE_TYPE(chromeos::switches::kEnableFileManagerMTP) |
| 1787 }, | 1787 }, |
| 1788 #endif | 1788 #endif |
| 1789 #if defined(USE_AURA) |
| 1790 { |
| 1791 "text-input-focus-manager", |
| 1792 IDS_FLAGS_TEXT_INPUT_FOCUS_MANAGER_NAME, |
| 1793 IDS_FLAGS_TEXT_INPUT_FOCUS_MANAGER_DESCRIPTION, |
| 1794 kOsCrOS | kOsLinux | kOsWin, |
| 1795 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTextInputFocusManager, |
| 1796 switches::kDisableTextInputFocusManager) |
| 1797 }, |
| 1798 #endif |
| 1789 }; | 1799 }; |
| 1790 | 1800 |
| 1791 const Experiment* experiments = kExperiments; | 1801 const Experiment* experiments = kExperiments; |
| 1792 size_t num_experiments = arraysize(kExperiments); | 1802 size_t num_experiments = arraysize(kExperiments); |
| 1793 | 1803 |
| 1794 // Stores and encapsulates the little state that about:flags has. | 1804 // Stores and encapsulates the little state that about:flags has. |
| 1795 class FlagsState { | 1805 class FlagsState { |
| 1796 public: | 1806 public: |
| 1797 FlagsState() : needs_restart_(false) {} | 1807 FlagsState() : needs_restart_(false) {} |
| 1798 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1808 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2303 } | 2313 } |
| 2304 | 2314 |
| 2305 const Experiment* GetExperiments(size_t* count) { | 2315 const Experiment* GetExperiments(size_t* count) { |
| 2306 *count = num_experiments; | 2316 *count = num_experiments; |
| 2307 return experiments; | 2317 return experiments; |
| 2308 } | 2318 } |
| 2309 | 2319 |
| 2310 } // namespace testing | 2320 } // namespace testing |
| 2311 | 2321 |
| 2312 } // namespace about_flags | 2322 } // namespace about_flags |
| OLD | NEW |