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

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

Issue 1931503002: Add BackgroundModeOptimizer that can restart the browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PushKeepAlive
Patch Set: address comments. disable feature by default Created 4 years, 5 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') | chrome/common/pref_names.h » ('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 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_WIN) || defined(OS_MACOSX) 17 #if defined(OS_WIN) || defined(OS_MACOSX)
18 // Enables automatic tab discarding, when the system is in low memory state. 18 // Enables automatic tab discarding, when the system is in low memory state.
19 const base::Feature kAutomaticTabDiscarding{"AutomaticTabDiscarding", 19 const base::Feature kAutomaticTabDiscarding{"AutomaticTabDiscarding",
20 base::FEATURE_DISABLED_BY_DEFAULT}; 20 base::FEATURE_DISABLED_BY_DEFAULT};
21 #endif // defined(OS_WIN) || defined(OS_MACOSX) 21 #endif // defined(OS_WIN) || defined(OS_MACOSX)
22 22
23 #if defined(OS_WIN) || defined(OS_LINUX)
24 // 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
26 // discard memory.
27 const base::Feature kBackgroundModeAllowRestart{
28 "BackgroundModeAllowRestart", base::FEATURE_DISABLED_BY_DEFAULT};
29 #endif // defined(OS_WIN) || defined(OS_LINUX)
30
23 // Experiment to disable small cross-origin content. (http://crbug.com/608886) 31 // Experiment to disable small cross-origin content. (http://crbug.com/608886)
24 const base::Feature kBlockSmallContent{"BlockSmallPluginContent", 32 const base::Feature kBlockSmallContent{"BlockSmallPluginContent",
25 base::FEATURE_DISABLED_BY_DEFAULT}; 33 base::FEATURE_DISABLED_BY_DEFAULT};
26 34
27 // Fixes for browser hang bugs are deployed in a field trial in order to measure 35 // Fixes for browser hang bugs are deployed in a field trial in order to measure
28 // their impact. See crbug.com/478209. 36 // their impact. See crbug.com/478209.
29 const base::Feature kBrowserHangFixesExperiment{ 37 const base::Feature kBrowserHangFixesExperiment{
30 "BrowserHangFixesExperiment", base::FEATURE_DISABLED_BY_DEFAULT}; 38 "BrowserHangFixesExperiment", base::FEATURE_DISABLED_BY_DEFAULT};
31 39
32 // Enables Expect CT reporting, which sends reports for opted-in sites 40 // Enables Expect CT reporting, which sends reports for opted-in sites
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 base::FEATURE_DISABLED_BY_DEFAULT}; 103 base::FEATURE_DISABLED_BY_DEFAULT};
96 #endif 104 #endif
97 105
98 #if defined(OS_CHROMEOS) 106 #if defined(OS_CHROMEOS)
99 // Enables or disables the opt-in IME menu in the language settings page. 107 // Enables or disables the opt-in IME menu in the language settings page.
100 const base::Feature kOptInImeMenu{"OptInImeMenu", 108 const base::Feature kOptInImeMenu{"OptInImeMenu",
101 base::FEATURE_DISABLED_BY_DEFAULT}; 109 base::FEATURE_DISABLED_BY_DEFAULT};
102 #endif // defined(OS_CHROMEOS) 110 #endif // defined(OS_CHROMEOS)
103 111
104 } // namespace features 112 } // namespace features
OLDNEW
« no previous file with comments | « chrome/common/chrome_features.h ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698