Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 1431723002: Add brotli content-encoding filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Use SchemeIsCryptographic Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1996 matching lines...) Expand 10 before | Expand all | Expand 10 after
2007 kOsAndroid, 2007 kOsAndroid,
2008 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableWebNotificationCustomLayouts, 2008 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableWebNotificationCustomLayouts,
2009 switches::kDisableWebNotificationCustomLayouts)}, 2009 switches::kDisableWebNotificationCustomLayouts)},
2010 #endif // defined(ENABLE_NOTIFICATIONS) && defined(OS_ANDROID) 2010 #endif // defined(ENABLE_NOTIFICATIONS) && defined(OS_ANDROID)
2011 #if defined(OS_WIN) 2011 #if defined(OS_WIN)
2012 {"enable-appcontainer", IDS_FLAGS_ENABLE_APPCONTAINER_NAME, 2012 {"enable-appcontainer", IDS_FLAGS_ENABLE_APPCONTAINER_NAME,
2013 IDS_FLAGS_ENABLE_APPCONTAINER_DESCRIPTION, kOsWin, 2013 IDS_FLAGS_ENABLE_APPCONTAINER_DESCRIPTION, kOsWin,
2014 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppContainer, 2014 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppContainer,
2015 switches::kDisableAppContainer)}, 2015 switches::kDisableAppContainer)},
2016 #endif // defined(OS_WIN) 2016 #endif // defined(OS_WIN)
2017 #if !defined(DISABLE_BROTLI_SUPPORT)
2018 {"enable-brotli",
2019 IDS_FLAGS_ENABLE_BROTLI_NAME,
2020 IDS_FLAGS_ENABLE_BROTLI_DESCRIPTION,
2021 kOsAll,
2022 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableBrotli,
2023 switches::kDisableBrotli)},
2024 #endif
2017 #if defined(OS_ANDROID) 2025 #if defined(OS_ANDROID)
2018 {"disable-auto-hiding-toolbar-threshold", 2026 {"disable-auto-hiding-toolbar-threshold",
2019 IDS_FLAGS_DISABLE_AUTO_HIDING_TOOLBAR_NAME, 2027 IDS_FLAGS_DISABLE_AUTO_HIDING_TOOLBAR_NAME,
2020 IDS_FLAGS_DISABLE_AUTO_HIDING_TOOLBAR_DESCRIPTION, 2028 IDS_FLAGS_DISABLE_AUTO_HIDING_TOOLBAR_DESCRIPTION,
2021 kOsAndroid, 2029 kOsAndroid,
2022 SINGLE_VALUE_TYPE_AND_VALUE(switches::kDisableAutoHidingToolbarThreshold, 2030 SINGLE_VALUE_TYPE_AND_VALUE(switches::kDisableAutoHidingToolbarThreshold,
2023 "800")}, 2031 "800")},
2024 #endif 2032 #endif
2025 #if defined(TOOLKIT_VIEWS) 2033 #if defined(TOOLKIT_VIEWS)
2026 {"enable-autofill-credit-card-upload", 2034 {"enable-autofill-credit-card-upload",
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
2267 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2275 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2268 2276
2269 const FeatureEntry* GetFeatureEntries(size_t* count) { 2277 const FeatureEntry* GetFeatureEntries(size_t* count) {
2270 *count = arraysize(kFeatureEntries); 2278 *count = arraysize(kFeatureEntries);
2271 return kFeatureEntries; 2279 return kFeatureEntries;
2272 } 2280 }
2273 2281
2274 } // namespace testing 2282 } // namespace testing
2275 2283
2276 } // namespace about_flags 2284 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698