Chromium Code Reviews| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 #include "components/signin/core/common/signin_switches.h" | 48 #include "components/signin/core/common/signin_switches.h" |
| 49 #include "components/sync_driver/sync_driver_switches.h" | 49 #include "components/sync_driver/sync_driver_switches.h" |
| 50 #include "components/tracing/tracing_switches.h" | 50 #include "components/tracing/tracing_switches.h" |
| 51 #include "components/version_info/version_info.h" | 51 #include "components/version_info/version_info.h" |
| 52 #include "content/public/browser/user_metrics.h" | 52 #include "content/public/browser/user_metrics.h" |
| 53 #include "content/public/common/content_features.h" | 53 #include "content/public/common/content_features.h" |
| 54 #include "content/public/common/content_switches.h" | 54 #include "content/public/common/content_switches.h" |
| 55 #include "grit/components_strings.h" | 55 #include "grit/components_strings.h" |
| 56 #include "media/base/media_switches.h" | 56 #include "media/base/media_switches.h" |
| 57 #include "media/midi/midi_switches.h" | 57 #include "media/midi/midi_switches.h" |
| 58 #include "net/http/http_features.h" | |
| 58 #include "ui/base/l10n/l10n_util.h" | 59 #include "ui/base/l10n/l10n_util.h" |
| 59 #include "ui/base/ui_base_switches.h" | 60 #include "ui/base/ui_base_switches.h" |
| 60 #include "ui/display/display_switches.h" | 61 #include "ui/display/display_switches.h" |
| 61 #include "ui/events/event_switches.h" | 62 #include "ui/events/event_switches.h" |
| 62 #include "ui/gfx/switches.h" | 63 #include "ui/gfx/switches.h" |
| 63 #include "ui/gl/gl_switches.h" | 64 #include "ui/gl/gl_switches.h" |
| 64 #include "ui/keyboard/keyboard_switches.h" | 65 #include "ui/keyboard/keyboard_switches.h" |
| 65 #include "ui/native_theme/native_theme_switches.h" | 66 #include "ui/native_theme/native_theme_switches.h" |
| 66 #include "ui/views/views_switches.h" | 67 #include "ui/views/views_switches.h" |
| 67 | 68 |
| (...skipping 1945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2013 kOsAndroid, | 2014 kOsAndroid, |
| 2014 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableWebNotificationCustomLayouts, | 2015 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableWebNotificationCustomLayouts, |
| 2015 switches::kDisableWebNotificationCustomLayouts)}, | 2016 switches::kDisableWebNotificationCustomLayouts)}, |
| 2016 #endif // defined(ENABLE_NOTIFICATIONS) && defined(OS_ANDROID) | 2017 #endif // defined(ENABLE_NOTIFICATIONS) && defined(OS_ANDROID) |
| 2017 #if defined(OS_WIN) | 2018 #if defined(OS_WIN) |
| 2018 {"enable-appcontainer", IDS_FLAGS_ENABLE_APPCONTAINER_NAME, | 2019 {"enable-appcontainer", IDS_FLAGS_ENABLE_APPCONTAINER_NAME, |
| 2019 IDS_FLAGS_ENABLE_APPCONTAINER_DESCRIPTION, kOsWin, | 2020 IDS_FLAGS_ENABLE_APPCONTAINER_DESCRIPTION, kOsWin, |
| 2020 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppContainer, | 2021 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppContainer, |
| 2021 switches::kDisableAppContainer)}, | 2022 switches::kDisableAppContainer)}, |
| 2022 #endif // defined(OS_WIN) | 2023 #endif // defined(OS_WIN) |
| 2024 #if !defined(DISABLE_BROTLI_SUPPORT) | |
|
Ryan Sleevi
2015/12/17 01:04:40
BUG: Please review https://groups.google.com/a/chr
eustas
2015/12/17 16:44:54
All 3 exmaples of buildflag look simple - I don't
Ryan Sleevi
2015/12/17 22:49:33
That's not possible today either. That's part of w
| |
| 2025 {"enable-brotli", | |
| 2026 IDS_FLAGS_ENABLE_BROTLI_NAME, | |
| 2027 IDS_FLAGS_ENABLE_BROTLI_DESCRIPTION, | |
| 2028 kOsAll, | |
| 2029 FEATURE_VALUE_TYPE(net::features::kBrotliEncodingFeature)}, | |
| 2030 #endif // !defined(DISABLE_BROTLI_SUPPORT) | |
| 2023 #if defined(OS_ANDROID) | 2031 #if defined(OS_ANDROID) |
| 2024 {"disable-auto-hiding-toolbar-threshold", | 2032 {"disable-auto-hiding-toolbar-threshold", |
| 2025 IDS_FLAGS_DISABLE_AUTO_HIDING_TOOLBAR_NAME, | 2033 IDS_FLAGS_DISABLE_AUTO_HIDING_TOOLBAR_NAME, |
| 2026 IDS_FLAGS_DISABLE_AUTO_HIDING_TOOLBAR_DESCRIPTION, | 2034 IDS_FLAGS_DISABLE_AUTO_HIDING_TOOLBAR_DESCRIPTION, |
| 2027 kOsAndroid, | 2035 kOsAndroid, |
| 2028 SINGLE_VALUE_TYPE_AND_VALUE(switches::kDisableAutoHidingToolbarThreshold, | 2036 SINGLE_VALUE_TYPE_AND_VALUE(switches::kDisableAutoHidingToolbarThreshold, |
| 2029 "800")}, | 2037 "800")}, |
| 2030 #endif | 2038 #endif |
| 2031 #if defined(TOOLKIT_VIEWS) | 2039 #if defined(TOOLKIT_VIEWS) |
| 2032 {"enable-autofill-credit-card-upload", | 2040 {"enable-autofill-credit-card-upload", |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2280 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2288 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2281 | 2289 |
| 2282 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2290 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2283 *count = arraysize(kFeatureEntries); | 2291 *count = arraysize(kFeatureEntries); |
| 2284 return kFeatureEntries; | 2292 return kFeatureEntries; |
| 2285 } | 2293 } |
| 2286 | 2294 |
| 2287 } // namespace testing | 2295 } // namespace testing |
| 2288 | 2296 |
| 2289 } // namespace about_flags | 2297 } // namespace about_flags |
| OLD | NEW |