| 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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 kOsAll, | 671 kOsAll, |
| 672 SINGLE_VALUE_TYPE(switches::kEnablePlatformApps) | 672 SINGLE_VALUE_TYPE(switches::kEnablePlatformApps) |
| 673 }, | 673 }, |
| 674 { | 674 { |
| 675 "allow-nacl-socket-api", | 675 "allow-nacl-socket-api", |
| 676 IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME, | 676 IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME, |
| 677 IDS_FLAGS_ALLOW_NACL_SOCKET_API_DESCRIPTION, | 677 IDS_FLAGS_ALLOW_NACL_SOCKET_API_DESCRIPTION, |
| 678 kOsAll, | 678 kOsAll, |
| 679 SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*") | 679 SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*") |
| 680 }, | 680 }, |
| 681 { |
| 682 "default-device-scale-factor", |
| 683 IDS_FLAGS_FORCE_HIGH_DPI_NAME, |
| 684 IDS_FLAGS_FORCE_HIGH_DPI_DESCRIPTION, |
| 685 kOsCrOS, |
| 686 SINGLE_VALUE_TYPE_AND_VALUE(switches::kDefaultDeviceScaleFactor, "2") |
| 687 }, |
| 681 }; | 688 }; |
| 682 | 689 |
| 683 const Experiment* experiments = kExperiments; | 690 const Experiment* experiments = kExperiments; |
| 684 size_t num_experiments = arraysize(kExperiments); | 691 size_t num_experiments = arraysize(kExperiments); |
| 685 | 692 |
| 686 // Stores and encapsulates the little state that about:flags has. | 693 // Stores and encapsulates the little state that about:flags has. |
| 687 class FlagsState { | 694 class FlagsState { |
| 688 public: | 695 public: |
| 689 FlagsState() : needs_restart_(false) {} | 696 FlagsState() : needs_restart_(false) {} |
| 690 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 697 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 } | 1113 } |
| 1107 | 1114 |
| 1108 const Experiment* GetExperiments(size_t* count) { | 1115 const Experiment* GetExperiments(size_t* count) { |
| 1109 *count = num_experiments; | 1116 *count = num_experiments; |
| 1110 return experiments; | 1117 return experiments; |
| 1111 } | 1118 } |
| 1112 | 1119 |
| 1113 } // namespace testing | 1120 } // namespace testing |
| 1114 | 1121 |
| 1115 } // namespace about_flags | 1122 } // namespace about_flags |
| OLD | NEW |