Fix emulator build error
[platform/framework/web/chromium-efl.git] / base / android / base_features.cc
1 // Copyright 2022 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/android/base_features.h"
6 #include "base/feature_list.h"
7
8 namespace base::android::features {
9
10 // Alphabetical:
11
12 // When the browser process has been in the background for several minutes at a
13 // time, trigger an artificial critical memory pressure notification. This is
14 // intended to reduce memory footprint.
15 BASE_FEATURE(kBrowserProcessMemoryPurge,
16              "BrowserProcessMemoryPurge",
17              FEATURE_ENABLED_BY_DEFAULT);
18
19 // Crash the browser process if a child process is created which does not match
20 // the browser process and the browser package appears to have changed since the
21 // browser process was launched, so that the browser process will be started
22 // fresh when next used, hopefully resolving the issue.
23 BASE_FEATURE(kCrashBrowserOnChildMismatchIfBrowserChanged,
24              "CrashBrowserOnChildMismatchIfBrowserChanged",
25              FEATURE_ENABLED_BY_DEFAULT);
26
27 // Crash the browser process if a child process is created which does not match
28 // the browser process regardless of whether the browser package appears to have
29 // changed.
30 BASE_FEATURE(kCrashBrowserOnAnyChildMismatch,
31              "CrashBrowserOnAnyChildMismatch",
32              FEATURE_DISABLED_BY_DEFAULT);
33
34 }  // namespace base::android::features