| 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 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 {"enable-translate-new-ux", IDS_FLAGS_TRANSLATE_NEW_UX_NAME, | 1223 {"enable-translate-new-ux", IDS_FLAGS_TRANSLATE_NEW_UX_NAME, |
| 1224 IDS_FLAGS_TRANSLATE_NEW_UX_DESCRIPTION, kOsMac, | 1224 IDS_FLAGS_TRANSLATE_NEW_UX_DESCRIPTION, kOsMac, |
| 1225 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTranslateNewUX, | 1225 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTranslateNewUX, |
| 1226 switches::kDisableTranslateNewUX)}, | 1226 switches::kDisableTranslateNewUX)}, |
| 1227 #endif | 1227 #endif |
| 1228 #if defined(OS_MACOSX) | 1228 #if defined(OS_MACOSX) |
| 1229 {"enable-native-notifications", IDS_NOTIFICATIONS_NATIVE_FLAG, | 1229 {"enable-native-notifications", IDS_NOTIFICATIONS_NATIVE_FLAG, |
| 1230 IDS_NOTIFICATIONS_NATIVE_FLAG_DESCRIPTION, kOsMac, | 1230 IDS_NOTIFICATIONS_NATIVE_FLAG_DESCRIPTION, kOsMac, |
| 1231 SINGLE_VALUE_TYPE(switches::kEnableNativeNotifications)}, | 1231 SINGLE_VALUE_TYPE(switches::kEnableNativeNotifications)}, |
| 1232 #endif | 1232 #endif |
| 1233 #if defined(ENABLE_NOTIFICATIONS) |
| 1234 {"enable-notification-action-icons", |
| 1235 IDS_FLAGS_ENABLE_NOTIFICATION_ACTION_ICONS_NAME, |
| 1236 IDS_FLAGS_ENABLE_NOTIFICATION_ACTION_ICONS_DESCRIPTION, kOsAll, |
| 1237 SINGLE_VALUE_TYPE(switches::kEnableNotificationActionIcons)}, |
| 1238 #endif |
| 1233 #if defined(TOOLKIT_VIEWS) | 1239 #if defined(TOOLKIT_VIEWS) |
| 1234 {"disable-views-rect-based-targeting", // FLAGS:RECORD_UMA | 1240 {"disable-views-rect-based-targeting", // FLAGS:RECORD_UMA |
| 1235 IDS_FLAGS_VIEWS_RECT_BASED_TARGETING_NAME, | 1241 IDS_FLAGS_VIEWS_RECT_BASED_TARGETING_NAME, |
| 1236 IDS_FLAGS_VIEWS_RECT_BASED_TARGETING_DESCRIPTION, | 1242 IDS_FLAGS_VIEWS_RECT_BASED_TARGETING_DESCRIPTION, |
| 1237 kOsCrOS | kOsWin | kOsLinux, | 1243 kOsCrOS | kOsWin | kOsLinux, |
| 1238 SINGLE_DISABLE_VALUE_TYPE( | 1244 SINGLE_DISABLE_VALUE_TYPE( |
| 1239 views::switches::kDisableViewsRectBasedTargeting)}, | 1245 views::switches::kDisableViewsRectBasedTargeting)}, |
| 1240 {"enable-link-disambiguation-popup", | 1246 {"enable-link-disambiguation-popup", |
| 1241 IDS_FLAGS_LINK_DISAMBIGUATION_POPUP_NAME, | 1247 IDS_FLAGS_LINK_DISAMBIGUATION_POPUP_NAME, |
| 1242 IDS_FLAGS_LINK_DISAMBIGUATION_POPUP_DESCRIPTION, kOsCrOS | kOsWin, | 1248 IDS_FLAGS_LINK_DISAMBIGUATION_POPUP_DESCRIPTION, kOsCrOS | kOsWin, |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2019 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2025 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2020 | 2026 |
| 2021 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2027 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2022 *count = arraysize(kFeatureEntries); | 2028 *count = arraysize(kFeatureEntries); |
| 2023 return kFeatureEntries; | 2029 return kFeatureEntries; |
| 2024 } | 2030 } |
| 2025 | 2031 |
| 2026 } // namespace testing | 2032 } // namespace testing |
| 2027 | 2033 |
| 2028 } // namespace about_flags | 2034 } // namespace about_flags |
| OLD | NEW |