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

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

Issue 2865793002: Remove the BackspaceGoesBack flag. (Closed)
Patch Set: Add TODO Created 3 years, 7 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
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 #endif // defined(OS_WIN) || defined(OS_MACOSX) 53 #endif // defined(OS_WIN) || defined(OS_MACOSX)
54 54
55 #if defined(OS_WIN) || defined(OS_LINUX) 55 #if defined(OS_WIN) || defined(OS_LINUX)
56 // Enables the Restart background mode optimization. When all Chrome UI is 56 // Enables the Restart background mode optimization. When all Chrome UI is
57 // closed and it goes in the background, allows to restart the browser to 57 // closed and it goes in the background, allows to restart the browser to
58 // discard memory. 58 // discard memory.
59 const base::Feature kBackgroundModeAllowRestart{ 59 const base::Feature kBackgroundModeAllowRestart{
60 "BackgroundModeAllowRestart", base::FEATURE_DISABLED_BY_DEFAULT}; 60 "BackgroundModeAllowRestart", base::FEATURE_DISABLED_BY_DEFAULT};
61 #endif // defined(OS_WIN) || defined(OS_LINUX) 61 #endif // defined(OS_WIN) || defined(OS_LINUX)
62 62
63 // Enables the Backspace key to navigate back in the browser, as well as
64 // Shift+Backspace to navigate forward.
65 const base::Feature kBackspaceGoesBackFeature {
66 "BackspaceGoesBack", base::FEATURE_DISABLED_BY_DEFAULT
67 };
68
69 // Enables or disables whether permission prompts are automatically blocked 63 // Enables or disables whether permission prompts are automatically blocked
70 // after the user has explicitly dismissed them too many times. 64 // after the user has explicitly dismissed them too many times.
71 const base::Feature kBlockPromptsIfDismissedOften{ 65 const base::Feature kBlockPromptsIfDismissedOften{
72 "BlockPromptsIfDismissedOften", base::FEATURE_DISABLED_BY_DEFAULT}; 66 "BlockPromptsIfDismissedOften", base::FEATURE_DISABLED_BY_DEFAULT};
73 67
74 // Enables or disables whether permission prompts are automatically blocked 68 // Enables or disables whether permission prompts are automatically blocked
75 // after the user has ignored them too many times. 69 // after the user has ignored them too many times.
76 const base::Feature kBlockPromptsIfIgnoredOften{ 70 const base::Feature kBlockPromptsIfIgnoredOften{
77 "BlockPromptsIfIgnoredOften", base::FEATURE_DISABLED_BY_DEFAULT}; 71 "BlockPromptsIfIgnoredOften", base::FEATURE_DISABLED_BY_DEFAULT};
78 72
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 return base::FeatureList::IsEnabled(features::kPrefService) || 361 return base::FeatureList::IsEnabled(features::kPrefService) ||
368 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 362 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
369 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 363 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
370 switches::kMusConfig) == switches::kMash; 364 switches::kMusConfig) == switches::kMash;
371 #else 365 #else
372 false; 366 false;
373 #endif 367 #endif
374 } 368 }
375 369
376 } // namespace features 370 } // namespace features
OLDNEW
« chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc ('K') | « chrome/common/chrome_features.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698