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 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1461 kOsAndroid, | 1461 kOsAndroid, |
1462 SINGLE_VALUE_TYPE(switches::kEnableDraggableMenuButton) | 1462 SINGLE_VALUE_TYPE(switches::kEnableDraggableMenuButton) |
1463 }, | 1463 }, |
1464 { | 1464 { |
1465 "enable-reset-profile-settings", | 1465 "enable-reset-profile-settings", |
1466 IDS_FLAGS_ENABLE_RESET_PROFILE_SETTINGS_NAME, | 1466 IDS_FLAGS_ENABLE_RESET_PROFILE_SETTINGS_NAME, |
1467 IDS_FLAGS_ENABLE_RESET_PROFILE_SETTINGS_DESCRIPTION, | 1467 IDS_FLAGS_ENABLE_RESET_PROFILE_SETTINGS_DESCRIPTION, |
1468 kOsAll, | 1468 kOsAll, |
1469 SINGLE_VALUE_TYPE(switches::kEnableResetProfileSettings) | 1469 SINGLE_VALUE_TYPE(switches::kEnableResetProfileSettings) |
1470 }, | 1470 }, |
| 1471 { |
| 1472 "high-dpi-support", |
| 1473 IDS_FLAGS_HIDPI_NAME, |
| 1474 IDS_FLAGS_HIDPI_DESCRIPTION, |
| 1475 kOsWin, |
| 1476 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(switches::kHighDPISupport,"1", |
| 1477 switches::kHighDPISupport,"0") |
| 1478 }, |
1471 }; | 1479 }; |
1472 | 1480 |
1473 const Experiment* experiments = kExperiments; | 1481 const Experiment* experiments = kExperiments; |
1474 size_t num_experiments = arraysize(kExperiments); | 1482 size_t num_experiments = arraysize(kExperiments); |
1475 | 1483 |
1476 // Stores and encapsulates the little state that about:flags has. | 1484 // Stores and encapsulates the little state that about:flags has. |
1477 class FlagsState { | 1485 class FlagsState { |
1478 public: | 1486 public: |
1479 FlagsState() : needs_restart_(false) {} | 1487 FlagsState() : needs_restart_(false) {} |
1480 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 1488 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1965 } | 1973 } |
1966 | 1974 |
1967 const Experiment* GetExperiments(size_t* count) { | 1975 const Experiment* GetExperiments(size_t* count) { |
1968 *count = num_experiments; | 1976 *count = num_experiments; |
1969 return experiments; | 1977 return experiments; |
1970 } | 1978 } |
1971 | 1979 |
1972 } // namespace testing | 1980 } // namespace testing |
1973 | 1981 |
1974 } // namespace about_flags | 1982 } // namespace about_flags |
OLD | NEW |