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

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

Issue 2455973006: Prevent popunders with the new auto-dismissing dialogs. (Closed)
Patch Set: with test Created 4 years, 1 month 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') | no next file » | 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 namespace features { 7 namespace features {
8 8
9 // All features in alphabetical order. 9 // All features in alphabetical order.
10 10
11 #if defined(OS_CHROMEOS) 11 #if defined(OS_CHROMEOS)
12 // Whether to handle low memory kill of ARC apps by Chrome. 12 // Whether to handle low memory kill of ARC apps by Chrome.
13 const base::Feature kArcMemoryManagement{ 13 const base::Feature kArcMemoryManagement{
14 "ArcMemoryManagement", base::FEATURE_ENABLED_BY_DEFAULT}; 14 "ArcMemoryManagement", base::FEATURE_ENABLED_BY_DEFAULT};
15 #endif // defined(OS_CHROMEOS) 15 #endif // defined(OS_CHROMEOS)
16 16
17 #if !defined(OS_ANDROID) && !defined(OS_IOS)
18 // Enables auto-dismissing JavaScript dialogs.
19 const base::Feature kAutoDismissingDialogs{"AutoDismissingDialogs",
20 base::FEATURE_DISABLED_BY_DEFAULT};
21 #endif
22
17 #if defined(OS_WIN) || defined(OS_MACOSX) 23 #if defined(OS_WIN) || defined(OS_MACOSX)
18 // Enables automatic tab discarding, when the system is in low memory state. 24 // Enables automatic tab discarding, when the system is in low memory state.
19 const base::Feature kAutomaticTabDiscarding{"AutomaticTabDiscarding", 25 const base::Feature kAutomaticTabDiscarding{"AutomaticTabDiscarding",
20 base::FEATURE_ENABLED_BY_DEFAULT}; 26 base::FEATURE_ENABLED_BY_DEFAULT};
21 #endif // defined(OS_WIN) || defined(OS_MACOSX) 27 #endif // defined(OS_WIN) || defined(OS_MACOSX)
22 28
23 #if defined(OS_WIN) || defined(OS_LINUX) 29 #if defined(OS_WIN) || defined(OS_LINUX)
24 // Enables the Restart background mode optimization. When all Chrome UI is 30 // Enables the Restart background mode optimization. When all Chrome UI is
25 // closed and it goes in the background, allows to restart the browser to 31 // closed and it goes in the background, allows to restart the browser to
26 // discard memory. 32 // discard memory.
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Enables or disables PIN quick unlock settings integration. 197 // Enables or disables PIN quick unlock settings integration.
192 const base::Feature kQuickUnlockPin{"QuickUnlockPin", 198 const base::Feature kQuickUnlockPin{"QuickUnlockPin",
193 base::FEATURE_DISABLED_BY_DEFAULT}; 199 base::FEATURE_DISABLED_BY_DEFAULT};
194 200
195 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. 201 // Enables or disables emoji, handwriting and voice input on opt-in IME menu.
196 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", 202 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput",
197 base::FEATURE_DISABLED_BY_DEFAULT}; 203 base::FEATURE_DISABLED_BY_DEFAULT};
198 #endif // defined(OS_CHROMEOS) 204 #endif // defined(OS_CHROMEOS)
199 205
200 } // namespace features 206 } // namespace features
OLDNEW
« no previous file with comments | « chrome/common/chrome_features.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698