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

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

Issue 2092293002: Block framebusts without a user gesture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better flag description Created 4 years, 3 months 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after
2001 IDS_FLAGS_PASSIVE_EVENT_LISTENERS_DUE_TO_FLING_NAME, 2001 IDS_FLAGS_PASSIVE_EVENT_LISTENERS_DUE_TO_FLING_NAME,
2002 IDS_FLAGS_PASSIVE_EVENT_LISTENERS_DUE_TO_FLING_DESCRIPTION, kOsAll, 2002 IDS_FLAGS_PASSIVE_EVENT_LISTENERS_DUE_TO_FLING_DESCRIPTION, kOsAll,
2003 FEATURE_VALUE_TYPE(features::kPassiveEventListenersDueToFling)}, 2003 FEATURE_VALUE_TYPE(features::kPassiveEventListenersDueToFling)},
2004 {"enable-loading-ipc-optimization-for-small-resources", 2004 {"enable-loading-ipc-optimization-for-small-resources",
2005 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME, 2005 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME,
2006 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll, 2006 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll,
2007 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)}, 2007 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)},
2008 {"enable-font-cache-scaling", IDS_FLAGS_FONT_CACHE_SCALING_NAME, 2008 {"enable-font-cache-scaling", IDS_FLAGS_FONT_CACHE_SCALING_NAME,
2009 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll, 2009 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll,
2010 FEATURE_VALUE_TYPE(features::kFontCacheScaling)}, 2010 FEATURE_VALUE_TYPE(features::kFontCacheScaling)},
2011 {"enable-framebusting-needs-sameorigin-or-usergesture",
2012 IDS_FLAGS_FRAMEBUSTING_NAME, IDS_FLAGS_FRAMEBUSTING_DESCRIPTION, kOsAll,
2013 FEATURE_VALUE_TYPE(features::kFramebustingNeedsSameOriginOrUserGesture)},
2011 #if defined(OS_ANDROID) 2014 #if defined(OS_ANDROID)
2012 {"enable-vr-shell", IDS_FLAGS_ENABLE_VR_SHELL_NAME, 2015 {"enable-vr-shell", IDS_FLAGS_ENABLE_VR_SHELL_NAME,
2013 IDS_FLAGS_ENABLE_VR_SHELL_DESCRIPTION, kOsAndroid, 2016 IDS_FLAGS_ENABLE_VR_SHELL_DESCRIPTION, kOsAndroid,
2014 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableVrShell, 2017 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableVrShell,
2015 switches::kDisableVrShell)}, 2018 switches::kDisableVrShell)},
2016 {"enable-android-pay-integration-v1", 2019 {"enable-android-pay-integration-v1",
2017 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V1_NAME, 2020 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V1_NAME,
2018 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V1_DESCRIPTION, kOsAndroid, 2021 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V1_DESCRIPTION, kOsAndroid,
2019 FEATURE_VALUE_TYPE(chrome::android::kAndroidPayIntegrationV1)}, 2022 FEATURE_VALUE_TYPE(chrome::android::kAndroidPayIntegrationV1)},
2020 #endif 2023 #endif
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
2239 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2242 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2240 2243
2241 const FeatureEntry* GetFeatureEntries(size_t* count) { 2244 const FeatureEntry* GetFeatureEntries(size_t* count) {
2242 *count = arraysize(kFeatureEntries); 2245 *count = arraysize(kFeatureEntries);
2243 return kFeatureEntries; 2246 return kFeatureEntries;
2244 } 2247 }
2245 2248
2246 } // namespace testing 2249 } // namespace testing
2247 2250
2248 } // namespace about_flags 2251 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698