Skip to content

Commit 8edfcd8

Browse files
authored
Revert "modular: Disable database directory deletion" (#7842)
Reverts #7799 We no longer need the workaround as the `fdopendir` wrapper was submitted: #7840 Issue: 452357142
1 parent 3579e0a commit 8edfcd8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

content/browser/storage_partition_impl_map.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,8 @@ const base::FilePath::CharType kDefaultPartitionDirname[] =
7474
FILE_PATH_LITERAL("def");
7575
const base::FilePath::CharType kTrashDirname[] =
7676
FILE_PATH_LITERAL("trash");
77-
#if !BUILDFLAG(ENABLE_COBALT_HERMETIC_HACKS)
7877
const base::FilePath::CharType kWebSQLDirname[] =
7978
FILE_PATH_LITERAL("databases");
80-
#endif
8179

8280
// Because partition names are user specified, they can be arbitrarily long
8381
// which makes them unsuitable for paths names. We use a truncation of a
@@ -458,7 +456,6 @@ void StoragePartitionImplMap::PostCreateInitialization(
458456
InitializeResourceContext(browser_context_);
459457
}
460458

461-
#if !BUILDFLAG(ENABLE_COBALT_HERMETIC_HACKS)
462459
if (!in_memory) {
463460
// Clean up any lingering WebSQL user data on disk, now that WebSQL
464461
// has been deprecated and removed for all platforms.
@@ -468,7 +465,6 @@ void StoragePartitionImplMap::PostCreateInitialization(
468465
[](const base::FilePath& dir) { base::DeletePathRecursively(dir); },
469466
partition->GetPath().Append(kWebSQLDirname)));
470467
}
471-
#endif
472468

473469
partition->GetBackgroundFetchContext()->Initialize();
474470
}

0 commit comments

Comments
 (0)