| 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 <iterator> | 7 #include <iterator> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 #include "components/error_page/common/error_page_switches.h" | 40 #include "components/error_page/common/error_page_switches.h" |
| 41 #include "components/flags_ui/feature_entry_macros.h" | 41 #include "components/flags_ui/feature_entry_macros.h" |
| 42 #include "components/flags_ui/flags_storage.h" | 42 #include "components/flags_ui/flags_storage.h" |
| 43 #include "components/flags_ui/flags_ui_switches.h" | 43 #include "components/flags_ui/flags_ui_switches.h" |
| 44 #include "components/nacl/common/nacl_switches.h" | 44 #include "components/nacl/common/nacl_switches.h" |
| 45 #include "components/offline_pages/offline_page_switches.h" | 45 #include "components/offline_pages/offline_page_switches.h" |
| 46 #include "components/omnibox/browser/omnibox_switches.h" | 46 #include "components/omnibox/browser/omnibox_switches.h" |
| 47 #include "components/password_manager/core/common/password_manager_features.h" | 47 #include "components/password_manager/core/common/password_manager_features.h" |
| 48 #include "components/password_manager/core/common/password_manager_switches.h" | 48 #include "components/password_manager/core/common/password_manager_switches.h" |
| 49 #include "components/proximity_auth/switches.h" | 49 #include "components/proximity_auth/switches.h" |
| 50 #include "components/quirks/switches.h" |
| 50 #include "components/search/search_switches.h" | 51 #include "components/search/search_switches.h" |
| 51 #include "components/security_state/switches.h" | 52 #include "components/security_state/switches.h" |
| 52 #include "components/signin/core/common/signin_switches.h" | 53 #include "components/signin/core/common/signin_switches.h" |
| 53 #include "components/sync_driver/sync_driver_switches.h" | 54 #include "components/sync_driver/sync_driver_switches.h" |
| 54 #include "components/tracing/tracing_switches.h" | 55 #include "components/tracing/tracing_switches.h" |
| 55 #include "components/version_info/version_info.h" | 56 #include "components/version_info/version_info.h" |
| 56 #include "content/public/browser/user_metrics.h" | 57 #include "content/public/browser/user_metrics.h" |
| 57 #include "content/public/common/content_features.h" | 58 #include "content/public/common/content_features.h" |
| 58 #include "content/public/common/content_switches.h" | 59 #include "content/public/common/content_switches.h" |
| 59 #include "grit/components_strings.h" | 60 #include "grit/components_strings.h" |
| (...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 chromeos::switches::kDisableOfficeEditingComponentApp), | 842 chromeos::switches::kDisableOfficeEditingComponentApp), |
| 842 }, | 843 }, |
| 843 { | 844 { |
| 844 "disable-display-color-calibration", | 845 "disable-display-color-calibration", |
| 845 IDS_FLAGS_DISPLAY_COLOR_CALIBRATION_NAME, | 846 IDS_FLAGS_DISPLAY_COLOR_CALIBRATION_NAME, |
| 846 IDS_FLAGS_DISPLAY_COLOR_CALIBRATION_DESCRIPTION, kOsCrOS, | 847 IDS_FLAGS_DISPLAY_COLOR_CALIBRATION_DESCRIPTION, kOsCrOS, |
| 847 SINGLE_DISABLE_VALUE_TYPE( | 848 SINGLE_DISABLE_VALUE_TYPE( |
| 848 ui::switches::kDisableDisplayColorCalibration), | 849 ui::switches::kDisableDisplayColorCalibration), |
| 849 }, | 850 }, |
| 850 { | 851 { |
| 852 "enable-display-quirks-client", |
| 853 IDS_FLAGS_ENABLE_DISPLAY_QUIRKS_CLIENT_NAME, |
| 854 IDS_FLAGS_ENABLE_DISPLAY_QUIRKS_CLIENT_DESCRIPTION, kOsCrOS, |
| 855 SINGLE_VALUE_TYPE(quirks::switches::kEnableDisplayQuirksClient), |
| 856 }, |
| 857 { |
| 851 "ash-disable-screen-orientation-lock", | 858 "ash-disable-screen-orientation-lock", |
| 852 IDS_FLAGS_ASH_SCREEN_ORIENTATION_LOCK_NAME, | 859 IDS_FLAGS_ASH_SCREEN_ORIENTATION_LOCK_NAME, |
| 853 IDS_FLAGS_ASH_SCREEN_ORIENTATION_LOCK_DESCRIPTION, kOsCrOS, | 860 IDS_FLAGS_ASH_SCREEN_ORIENTATION_LOCK_DESCRIPTION, kOsCrOS, |
| 854 SINGLE_DISABLE_VALUE_TYPE( | 861 SINGLE_DISABLE_VALUE_TYPE( |
| 855 ash::switches::kAshDisableScreenOrientationLock), | 862 ash::switches::kAshDisableScreenOrientationLock), |
| 856 }, | 863 }, |
| 857 #endif // defined(OS_CHROMEOS) | 864 #endif // defined(OS_CHROMEOS) |
| 858 { | 865 { |
| 859 "disable-accelerated-video-decode", | 866 "disable-accelerated-video-decode", |
| 860 IDS_FLAGS_ACCELERATED_VIDEO_DECODE_NAME, | 867 IDS_FLAGS_ACCELERATED_VIDEO_DECODE_NAME, |
| (...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2025 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2032 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2026 | 2033 |
| 2027 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2034 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2028 *count = arraysize(kFeatureEntries); | 2035 *count = arraysize(kFeatureEntries); |
| 2029 return kFeatureEntries; | 2036 return kFeatureEntries; |
| 2030 } | 2037 } |
| 2031 | 2038 |
| 2032 } // namespace testing | 2039 } // namespace testing |
| 2033 | 2040 |
| 2034 } // namespace about_flags | 2041 } // namespace about_flags |
| OLD | NEW |