Feat: runtime profile override with getenv
[platform/framework/web/chromium-efl.git] / sql / sql_features.cc
1 // Copyright 2018 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 "sql/sql_features.h"
6
7 namespace sql::features {
8
9 // When enabled, the `Database::is_open()` method return false for poisoned
10 // databases.
11 // TODO(https://crbug.com/1441955): Remove this flag eventually.
12 BASE_FEATURE(kConsiderPoisonedDatabasesClosed,
13              "ConsiderPoisonedDatabasesClosed",
14              base::FEATURE_ENABLED_BY_DEFAULT);
15
16 // Enable WAL mode for all SQLite databases.
17 BASE_FEATURE(kEnableWALModeByDefault,
18              "EnableWALModeByDefault",
19              base::FEATURE_DISABLED_BY_DEFAULT);
20
21 // When enabled, `sql::BuiltInRecovery` can be used if it's supported. See
22 // https://crbug.com/1385500.
23 //
24 // This is an overarching kill switch which overrides any database-specific
25 // flag. See `sql::BuiltInRecovery::RecoverIfPossible()` for more context.
26 BASE_FEATURE(kUseBuiltInRecoveryIfSupported,
27              "UseBuiltInRecoveryIfSupported",
28              base::FEATURE_ENABLED_BY_DEFAULT);
29
30 }  // namespace sql::features