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

Side by Side Diff: chrome/common/chrome_features.cc

Issue 2790493002: Implement permissions embargo for prompts which are repeatedly ignored. (Closed)
Patch Set: Not for plugins Created 3 years, 8 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/common/chrome_features.h ('k') | tools/metrics/histograms/histograms.xml » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/common/chrome_features.h" 5 #include "chrome/common/chrome_features.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "extensions/features/features.h" 9 #include "extensions/features/features.h"
10 #include "ppapi/features/features.h" 10 #include "ppapi/features/features.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Shift+Backspace to navigate forward. 64 // Shift+Backspace to navigate forward.
65 const base::Feature kBackspaceGoesBackFeature { 65 const base::Feature kBackspaceGoesBackFeature {
66 "BackspaceGoesBack", base::FEATURE_DISABLED_BY_DEFAULT 66 "BackspaceGoesBack", base::FEATURE_DISABLED_BY_DEFAULT
67 }; 67 };
68 68
69 // Enables or disables whether permission prompts are automatically blocked 69 // Enables or disables whether permission prompts are automatically blocked
70 // after the user has explicitly dismissed them too many times. 70 // after the user has explicitly dismissed them too many times.
71 const base::Feature kBlockPromptsIfDismissedOften{ 71 const base::Feature kBlockPromptsIfDismissedOften{
72 "BlockPromptsIfDismissedOften", base::FEATURE_DISABLED_BY_DEFAULT}; 72 "BlockPromptsIfDismissedOften", base::FEATURE_DISABLED_BY_DEFAULT};
73 73
74 // Enables or disables whether permission prompts are automatically blocked
75 // after the user has ignored them too many times.
76 const base::Feature kBlockPromptsIfIgnoredOften{
77 "BlockPromptsIfIgnoredOften", base::FEATURE_DISABLED_BY_DEFAULT};
78
74 #if defined(OS_MACOSX) 79 #if defined(OS_MACOSX)
75 // Enables the new bookmark app system (e.g. Add To Applications on Mac). 80 // Enables the new bookmark app system (e.g. Add To Applications on Mac).
76 const base::Feature kBookmarkApps{"BookmarkAppsMac", 81 const base::Feature kBookmarkApps{"BookmarkAppsMac",
77 base::FEATURE_DISABLED_BY_DEFAULT}; 82 base::FEATURE_DISABLED_BY_DEFAULT};
78 #endif 83 #endif
79 84
80 // Fixes for browser hang bugs are deployed in a field trial in order to measure 85 // Fixes for browser hang bugs are deployed in a field trial in order to measure
81 // their impact. See crbug.com/478209. 86 // their impact. See crbug.com/478209.
82 const base::Feature kBrowserHangFixesExperiment{ 87 const base::Feature kBrowserHangFixesExperiment{
83 "BrowserHangFixesExperiment", base::FEATURE_DISABLED_BY_DEFAULT}; 88 "BrowserHangFixesExperiment", base::FEATURE_DISABLED_BY_DEFAULT};
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 return base::FeatureList::IsEnabled(features::kPrefService) || 322 return base::FeatureList::IsEnabled(features::kPrefService) ||
318 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 323 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
319 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 324 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
320 switches::kMusConfig) == switches::kMash; 325 switches::kMusConfig) == switches::kMash;
321 #else 326 #else
322 false; 327 false;
323 #endif 328 #endif
324 } 329 }
325 330
326 } // namespace features 331 } // namespace features
OLDNEW
« no previous file with comments | « chrome/common/chrome_features.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698