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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 IDS_ENABLE_SYNC_SIGNIN_DESCRIPTION, | 656 IDS_ENABLE_SYNC_SIGNIN_DESCRIPTION, |
657 kOsAll, | 657 kOsAll, |
658 SINGLE_VALUE_TYPE(switches::kEnableSyncSignin) | 658 SINGLE_VALUE_TYPE(switches::kEnableSyncSignin) |
659 }, | 659 }, |
660 { | 660 { |
661 "enable-platform-apps", | 661 "enable-platform-apps", |
662 IDS_FLAGS_ENABLE_PLATFORM_APPS_NAME, | 662 IDS_FLAGS_ENABLE_PLATFORM_APPS_NAME, |
663 IDS_FLAGS_ENABLE_PLATFORM_APPS_DESCRIPTION, | 663 IDS_FLAGS_ENABLE_PLATFORM_APPS_DESCRIPTION, |
664 kOsAll, | 664 kOsAll, |
665 SINGLE_VALUE_TYPE(switches::kEnablePlatformApps) | 665 SINGLE_VALUE_TYPE(switches::kEnablePlatformApps) |
| 666 }, |
| 667 { |
| 668 "default-device-scale-factor", |
| 669 IDS_FLAGS_FORCE_HIGH_DPI_NAME, |
| 670 IDS_FLAGS_FORCE_HIGH_DPI_DESCRIPTION, |
| 671 kOsCrOS, |
| 672 SINGLE_VALUE_TYPE_AND_VALUE(switches::kDefaultDeviceScaleFactor, "2") |
666 } | 673 } |
667 }; | 674 }; |
668 | 675 |
669 const Experiment* experiments = kExperiments; | 676 const Experiment* experiments = kExperiments; |
670 size_t num_experiments = arraysize(kExperiments); | 677 size_t num_experiments = arraysize(kExperiments); |
671 | 678 |
672 // Stores and encapsulates the little state that about:flags has. | 679 // Stores and encapsulates the little state that about:flags has. |
673 class FlagsState { | 680 class FlagsState { |
674 public: | 681 public: |
675 FlagsState() : needs_restart_(false) {} | 682 FlagsState() : needs_restart_(false) {} |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1092 } | 1099 } |
1093 | 1100 |
1094 const Experiment* GetExperiments(size_t* count) { | 1101 const Experiment* GetExperiments(size_t* count) { |
1095 *count = num_experiments; | 1102 *count = num_experiments; |
1096 return experiments; | 1103 return experiments; |
1097 } | 1104 } |
1098 | 1105 |
1099 } // namespace testing | 1106 } // namespace testing |
1100 | 1107 |
1101 } // namespace about_flags | 1108 } // namespace about_flags |
OLD | NEW |