Skip to content

Commit 2b5919b

Browse files
authored
Remove the directory hack (#7852)
Now that we have a wrapper for fdopendir we no longer need the hack. Issue: 457452027
1 parent a525e16 commit 2b5919b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

content/browser/blob_storage/chrome_blob_storage_context.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ namespace {
4646
const FilePath::CharType kBlobStorageParentDirectory[] =
4747
FILE_PATH_LITERAL("blob_storage");
4848

49-
#if !BUILDFLAG(ENABLE_COBALT_HERMETIC_HACKS)
5049
// Removes all folders in the parent directory except for the
5150
// |current_run_dir| folder. If this path is empty, then we delete all folders.
5251
void RemoveOldBlobStorageDirectories(FilePath blob_storage_parent,
@@ -63,7 +62,6 @@ void RemoveOldBlobStorageDirectories(FilePath blob_storage_parent,
6362
base::DeletePathRecursively(name);
6463
}
6564
}
66-
#endif
6765

6866
class BlobHandleImpl : public BlobHandle {
6967
public:
@@ -125,8 +123,6 @@ ChromeBlobStorageContext* ChromeBlobStorageContext::GetFor(
125123
// paging/saving blob data to disk.
126124
scoped_refptr<base::TaskRunner> file_task_runner;
127125

128-
// TODO, Cobalt: This causes a runtime crash for Evergreen builds.
129-
#if !BUILDFLAG(ENABLE_COBALT_HERMETIC_HACKS)
130126
// If we're not incognito mode, schedule all of our file tasks to enable
131127
// disk on the storage context.
132128
if (!context->IsOffTheRecord() && io_thread_valid) {
@@ -139,7 +135,6 @@ ChromeBlobStorageContext* ChromeBlobStorageContext::GetFor(
139135
base::BindOnce(&RemoveOldBlobStorageDirectories,
140136
std::move(blob_storage_parent), blob_storage_dir));
141137
}
142-
#endif
143138

144139
if (io_thread_valid) {
145140
GetIOThreadTaskRunner({})->PostTask(

0 commit comments

Comments
 (0)