| 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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 SINGLE_VALUE_TYPE(switches::kExperimentalWallpaperUI) | 766 SINGLE_VALUE_TYPE(switches::kExperimentalWallpaperUI) |
| 767 }, | 767 }, |
| 768 { | 768 { |
| 769 "enable-new-oobe", | 769 "enable-new-oobe", |
| 770 IDS_FLAGS_ENABLE_NEW_OOBE, | 770 IDS_FLAGS_ENABLE_NEW_OOBE, |
| 771 IDS_FLAGS_ENABLE_NEW_OOBE_DESCRIPTION, | 771 IDS_FLAGS_ENABLE_NEW_OOBE_DESCRIPTION, |
| 772 kOsCrOS, | 772 kOsCrOS, |
| 773 SINGLE_VALUE_TYPE(switches::kEnableNewOobe), | 773 SINGLE_VALUE_TYPE(switches::kEnableNewOobe), |
| 774 }, | 774 }, |
| 775 #endif | 775 #endif |
| 776 { |
| 777 "enable-views-textfield", |
| 778 IDS_FLAGS_ENABLE_VIEWS_TEXTFIELD_NAME, |
| 779 IDS_FLAGS_ENABLE_VIEWS_TEXTFIELD_DESCRIPTION, |
| 780 kOsWin, |
| 781 SINGLE_VALUE_TYPE(switches::kEnableViewsTextfield), |
| 782 }, |
| 776 }; | 783 }; |
| 777 | 784 |
| 778 const Experiment* experiments = kExperiments; | 785 const Experiment* experiments = kExperiments; |
| 779 size_t num_experiments = arraysize(kExperiments); | 786 size_t num_experiments = arraysize(kExperiments); |
| 780 | 787 |
| 781 // Stores and encapsulates the little state that about:flags has. | 788 // Stores and encapsulates the little state that about:flags has. |
| 782 class FlagsState { | 789 class FlagsState { |
| 783 public: | 790 public: |
| 784 FlagsState() : needs_restart_(false) {} | 791 FlagsState() : needs_restart_(false) {} |
| 785 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 792 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1201 } | 1208 } |
| 1202 | 1209 |
| 1203 const Experiment* GetExperiments(size_t* count) { | 1210 const Experiment* GetExperiments(size_t* count) { |
| 1204 *count = num_experiments; | 1211 *count = num_experiments; |
| 1205 return experiments; | 1212 return experiments; |
| 1206 } | 1213 } |
| 1207 | 1214 |
| 1208 } // namespace testing | 1215 } // namespace testing |
| 1209 | 1216 |
| 1210 } // namespace about_flags | 1217 } // namespace about_flags |
| OLD | NEW |